查询数据库中所有不为空的表的表名????

Waldenz Waldenz 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
我知道写个游标

declare @name varchar(200)
declare A cursor for (SELECT name FROM sysobjects where type='U')
OPEN A
fetch next from A into @name
WHILE @@FETCH_STATUS=0
begin
---这里怎么写呢??
fetch next from A into @name
end
close A
deallocate A








...全文
评论 9
收藏 已收藏
分享
返回顶部
Waldenz
应用实例 27,579 成员 68,540 内容