怎么查找数据库那些表有相同的字段 如test数据库中有多个数据表,现在想查找那些表中包含有“xh”这个字段、请问该怎么处理?数据库字段 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select name from sys.tables这里面有你需要的信息.. use testgoselect object_name([object_id]) 'TabName' from sys.columns where name='xh' select name from sys.columnswhere object_id in(select object_id from sys.tableswhere name='test') use [test]goselect object_name(object_id) from sys.columns where name = 'xh' 如果将SQL 2000的Northwind和pubs转移到SQL 2008? 如何查询同一个表中两个字段分别相同的数据 我服务器总是出现“超时时间已到” 关于存储过程的类型转换 急求! 有一个统计数据库记录总数的过程,有些问题,请帮忙看看,谢谢! 数据库的小问题 时间函数问题,参与有分!在线等! 请问如何能暂停向日志文件中写入内容?? 不使用SELECT COUNT 如何获得一个表或视图或查询的记录数,急 安装oralce server出错!求救 从表值函数更新虚拟表,需要从虚拟表传参数进去,一直报这个错,求教该怎么写才对? SQL SERVER 2000 升级至 2008 后发现的一个问题
use test
goselect object_name([object_id]) 'TabName'
from sys.columns
where name='xh'
where object_id in(
select object_id from sys.tables
where name='test')
goselect object_name(object_id) from sys.columns where name = 'xh'