- 博客(1)
- 资源 (1)
- 收藏
- 关注
原创 SQLServer 查询某个表存在于哪几个数据库
exec sp_MSforeachdb @command1=‘USE ? if exists(SELECT 1 from sysobjects where id=object_id(’‘表名’’)) PRINT ‘’?’’’
2020-08-20 09:58:46 1096
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
exec sp_MSforeachdb @command1=‘USE ? if exists(SELECT 1 from sysobjects where id=object_id(’‘表名’’)) PRINT ‘’?’’’
2020-08-20 09:58:46 1096
TA创建的收藏夹 TA关注的收藏夹
TA关注的人