和尚要还俗的博客
和尚要还俗 · 共 1 篇文章
SQL语句判断表 数据库 数据是否存在
Sql Server中判断表或者数据库是否存在 if exists(select 1 from master..dbo.sysdatabases where name='example') print 'DataBase existed' else print 'Database not existed' 2.表 IF Exists(Select 1 From sysObjects Where Name ='表名' And Type In ('S','U')) Print 'Exists Table' Else Print 'Not Exists Table' Sql Server中判断表或…
2014-12-08 10:15 · SQL · 评论(0)