mysql查询某个字段在哪些表中
查询sql如下查看某个库中哪些表存在对应的某个字段select * from INFORMATION_SCHEMA.columns where COLUMN_NAME Like '%字段名%' and table_schema = '库名';查看某个库中某个表中是否存在对应的某个字段select * from INFORMATION_SCHEMA.columns where COLUMN_NAME
·
查询sql如下
查看某个库中哪些表存在对应的某个字段
select * from INFORMATION_SCHEMA.columns where COLUMN_NAME Like '%字段名%' and table_schema = '库名';
查看某个库中某个表中是否存在对应的某个字段
select * from INFORMATION_SCHEMA.columns where COLUMN_NAME Like '%字段名%' and table_schema = '库名' and table_name='表名';
更多推荐
已为社区贡献3条内容
所有评论(0)