mysql查询所有表和表字段sql语句 根据字段名查询所属表
mysql查询所有表和表字段sql语句 根据字段名查询所属表1.查询所有表信息 包括备注信息
show table status
2.查询表字段所有信息 包括备注信息
show full fields from %table%
如:show full fieldsfrom wy_project_info
3.根据字段名查询所属表
在MYSQL 5.0之后的版本可以通过information_schema库当中的columns表来完成 如下代码来实现:
use information_schema;
select * from columns where column_name='channel_code';
页:
[1]