sqlserver和Oracle查看存在字段的所有表


--sqlserver查看存在字段的表
select object_name(id) objName,Name as colName
from syscolumns
where (name like'%条形码%')
and id in(select id from sysobjects where xtype='u')
order by objname
;

--oracle查看存在字段的表
select column_name,
table_name,data_type ,data_length,data_precision,data_scale
from user_tab_columns where column_name='登录号';

posted @ 2020-10-22 13:45  px_passion  阅读(125)  评论(0)    收藏  举报