0

mysql runtime error

select count(*), concat(database(), 0x3a, floor(rand(0) * 2)) as y from information_schema.tables group by y The above query is mostly used in mysql error-based sql injection to trigger runtime error. I don't want to know about sql injection. But what I want to know is why the runtime error is caused whenever the above query is run.

9th Aug 2017, 3:04 AM
Hnin Arkari
Hnin Arkari - avatar
1 Resposta
0
the second part of the select statement is randomly generated count(0) will return the count of rows found but no column will match the second select
9th Aug 2017, 7:38 AM
Rob Finnegan
Rob Finnegan - avatar