2014年04月06日 13:44:56

MySQL搜索字段名所在的表名

作者: 

搜索字段名为message的表名

  1. select table_name from information_schema.columns where column_name = 'message'

搜索表所有字段

  1. select column_name from information_schema.columns where table_name='tb_messages'

注:information_schema是很重要的一个数据库

阅读( 4968 ) Last modified on 2015年01月10日 19:29:33
看完顺手点个赞呗:
(0 votes)

1.PHP cURL群:PHP cURL高级技术
2.正则表达式群:专精正则表达式
3. QQ联系(加请说明):QQ联系博主(951086941)
4. 邮箱:zjmainstay@163.com
5. 打赏博主:

网站总访问量: