tnblog
首页
视频
资源
登录

sqlserver判断表是否存在

3073人阅读 2022/1/25 16:55 总访问:223746 评论:0 收藏:0 手机
分类: 数据库

code:

if OBJECT_ID(N'UserInfos',N'U') is not null
    print '表UserInfos 存在!'else 
    print '表UserInfos 不存在!'


评价
旧年素颜,君记否
排名
6
文章
6
粉丝
16
评论
8
{{item.articleTitle}}
{{item.blogName}} : {{item.content}}
ICP备案 :渝ICP备18016597号-1
网站信息:2018-2024TNBLOG.NET
技术交流:群号656732739
联系我们:contact@tnblog.net
欢迎加群交流技术