这个每种数据库不一样的 db2中:select TABNAME from syscat.columns where tabschema='x' and colname='字段名' 这里,x指的是db2的模式。 mysql中:select TABLE_NAME from information_schema.columns where table_schema='y' and column_name='字段名' 这里y指的是数据库的名称。 其他数据库应该也会有个系统表存放这些信息,表名以及这些字段的含义都是可以见面知义的,按着这个思路相信你能找到
select a.Name from (Select Object_Id(Name)as id,Name FROM SysObjects Where XType='U') as a,SysColumns where a.id=SysColumns.id and SysColumns.Name=字段名这样就行了~本回答被网友采纳