如何检索AAA数据库中有没有BBB表! if exists (select 1 from dbo.sysobjects where id=object_id('AAA..BBB') AND Xtype='U') print '存在'else print '不存在' 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[BBB]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) if exists (select 1 from aaa..sysobjects where name='BBB' and xtype='u') print '存在'else print '不存在' 在来一种办法if exists(select * from information_schema.tables where table_name='tablename')print '存在'elseprint '不存在' use aaagoif exists(select * from sysobjects where id=object_id('bbb') and name='bbb') print 'exist'else print 'no exist' if object_id('aaa..bbb') IS NOT NULL print 'exist'else print 'no exist' 同一服务器上不同数据库,同样的表结构查询耗时差很多,请教! [SQL,求教] 期盼。。 帮我写一个sql语句,急!!!! 2G的sql内存竟差不多都被用完了 sqlserver中取值的奇怪问题?急,在线 创建存储过程报错;非语法问题 请教SQL语句的问题 这样的过程问题怎么解决呀? ???!!SOS?????如何取时间的临界值问题???????求助???? 我在用vb编程的时候用到了数据库的SQLDMO.dll里面的内容,在vb的引用里面是Microsoft SQLDMO Object Library,请问为什么我的程序在没有 dtsrun的格式该怎样写啊? 数据库修改不了,请帮忙
print '存在'
else
print '不存在'
print '存在'
else
print '不存在'
go
if exists(select * from sysobjects where id=object_id('bbb') and name='bbb')
print 'exist'
else
print 'no exist'
print 'exist'
else
print 'no exist'