查找字段名为user_name的所有表
select d.name as table_name, a.name as column_name from syscolumns a inner join sysobjects d on a.id = d.id and d.xtype = 'U'
where a.name = 'user_name';
查找字段名为user_name的所有表
select d.name as table_name, a.name as column_name from syscolumns a inner join sysobjects d on a.id = d.id and d.xtype = 'U'
where a.name = 'user_name';