mysql ,sqlite 常见暴库命令

mysql :

查询数据库有哪些表: 

select  group_concat(table_name) from information_schema.tables where table_schema=0x74657374;  

table_schema 为数据库的名称 ,可以为字符串或0x编码。 

查询某表有哪些列:

select  group_concat(column_name) from information_schema.columns where table_name='xxx'   ;

查询某些列具体的值 ,使用limit 来限制查询出的个数:

select c_name from  table_name limit 0,1;


======================

sqlite: 

跑表:

select group_concat(name) from sqlite_master

跑列:

select group_concat(sql) from sqlite_master where name ='表名'

跑值:

select group_concat(列名) from 表名  



猜你喜欢

转载自blog.csdn.net/freshfox/article/details/80787354
今日推荐