mysql内置数据库结构:https://blog.youkuaiyun.com/u014421914/article/details/112734719
查询数据核心语法
功能名称 | 查询语句 |
---|---|
查库 | select schema_name from information_schema.schemata |
查表 | select table_name from information_schema.tables where table_schema=库名 |
查列 | select column_name from information_schema.columns where table_name=表名 |
查数据 | select 列名 from 库名.表名 |
注意事项
在“查表”和“查列”中,库名和表名均需要加引号,也可以将字符串转换为16进制而不加引号
for example:
以下两个命令等价:
select column_name from information_schema.columns where table_name = 'users';
select column_name from information_schema.columns where table_name = 0x7573657273;
字符串与16进制互转工具:
http://tools.bugscaner.com/text/zifuchuanzhuanhex.html