mysql查询 库名 表名 列名
2018-11-13 本文已影响0人
郎氏集团
查询所有库名
show databases
查询所有表名称
select table_name from information_schema.tables;
查询当前表的列名
select column_name from information_schema.COLUMNS where table_name = 'user_test'
查询所有库名
show databases
查询所有表名称
select table_name from information_schema.tables;
查询当前表的列名
select column_name from information_schema.COLUMNS where table_name = 'user_test'