MySQL

http://blog.csdn.net/fuxuejun/article/details/6277169

http://zk1878.iteye.com/blog/938346

查找一个表名或者字段名的 SQL 语句:

SELECT table_name, column_name from information_schema.columns WHERE column_name LIKE ‘Name‘;

下面两种方法也可以查到:

SELECT column_name from information_schema.columns WHERE column_name LIKE ’%searchTerm%’ AND table_schema = ‘yourDB’

SELECT column_name from information_schema.columns WHERE column_name LIKE ’%searchTerm%’ AND table_schema = ‘yourDB’ AND table_name = ‘yourDBTable’

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。