2017年7月30日
摘要: 我们在做sql更新时,为防止sql重复执行报错,需要对所需要执行的对象进行判断是否存在; 常用判断脚本如下: 判断视图是否存在 IF object_id('viewname') IS not NULL begin --操作 --drop view viewname end 判断表是否存在 IF ob 阅读全文
posted @ 2017-07-30 23:12 yxtic 阅读(3006) 评论(0) 推荐(0) 编辑