会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
Nonato De Blog
天薄我福,吾厚吾德以迎之;天劳我形,吾逸吾心以补之;天扼我遇,吾亨吾道以通之
博客园
首页
新随笔
联系
订阅
管理
2015年4月1日
if exists和if not exists关键字用法
摘要: 在sql语名中,if not exists 即如果不存在,if exists 即如果存在。下面学习下二者的用法。a,判断数据库不存在时代码示例:if not exists(select * from sys.databases where name = 'database_name')b,判断表不存...
阅读全文
posted @ 2015-04-01 12:06 Nonato
阅读(1364)
评论(0)
推荐(0)
编辑
公告