请问怎么判断是否存在一个表,如果存在return 1否则 return 0 啊,谢谢各位了~ 求教~ 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 return case when object_id('表名') is null then else 1 end if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[t3]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) print 1else print 0 抱歉,更正一下:return case when object_id('表名') is null then 0 else 1 end if object_id('tbname') is not null print 1else print 0 select * from sysobjects where id = object_id('TableName') And objectproperty(id, N'IsUserTable') = 1 if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[表名]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) select 1else select 0--这样呢? 请教.求某一日期到到现在的所有月份 A机上停止sql服务,将mdf,lfg拷到B机上,有时可以正常附加,有时不能正常附加,据说必须先执行“分离数据库”,有这个必要吗? 数据远程传输问题 sql问题 请教: tide(水手辛巴德) 请给出一个成绩管理系统程序(文档也行) 为什么从sql server 取来的中文数据在asp页面上显示(在win98上)乱码,有些字是正常的,已经用了charset=gb2312 弟兄们帮忙啊!表间的数据转移 关于oracle rdb的触发器的问题,请高手来挣分 跪求优化语句!!!!!!! 为什么检索不到数据?急....... 客户端连SQL数据库服务器问题
print 1
else
print 0
return case when object_id('表名') is null then 0 else 1 end
print 1
else
print 0
where id = object_id('TableName') And
objectproperty(id, N'IsUserTable') = 1
select 1
else
select 0--这样呢?