1、在Oracle中,这样写就可以解决了
select column_name,table_name from user_tab_columns where column_name= '字段名'
2、在SqlServer中,这样写就可以解决了
SELECT COLUMN_NAME,TABLE_NAME FROM INFORMATION_SCHEMA.columns WHERE COLUMN_NAME='字段名'
如:SELECT COLUMN_NAME,TABLE_NAME FROM INFORMATION_SCHEMA.columns WHERE COLUMN_NAME='goods_id'