摘要: 判断 临时表#tmp是否存在if(object_id('tempdb..#tmp') is not null)begindrop table #tmpend1)判断 表DepartmentInfo是否存在if object_id('DepartmentInfo') is null beginselect '不存在'endelsebegin select '存在'end 2)判断表'LC_Department是否存在if not exists (select * from sysobjects where [name] = 阅读全文
posted @ 2011-03-29 09:16 张宏宇 阅读(209) 评论(0) 推荐(0) 编辑