SQL Server 数据库基础编程
摘要:
Ø 判断表或其他对象及列是否存在--判断某个表或对象是否存在if (exists (select * from sys.objects where name = 'classes')) print '存在';goif (exists (select * from sys.objects where object_id = object_id('student'))) print '存在';goif (object_id('student', 'U') is not null) print 阅读全文
posted @ 2012-03-13 17:56 sumflower 阅读(189) 评论(0) 推荐(0) 编辑