(阳光灿烂的星期天里) 求助,...临时表如何删除? use tempdbif exists (select * from sysobjects where sysobjects.id=object_id)('#temp'))drop table #temp 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 use tempdbif exists (select * from sysobjects where sysobjects.id=object_id('#temp'))drop table #temp if object_id(N'tempdb.dbo.#temp) is not null drop table @temp TO:lykey(芝麻开门)如果是全局临时表(##开头),就会删除其他用户的临时表,局部临时表(#开头)不会。 bcp 命令中密码 不起作用,输不输都能导出数据?? 列名无效是什么问题 between 与and 的区别 如何只取分组的前N行 一个看似简单的SQL,我怎么弄了一天还没好呢,大脑陷入死胡同? 数据库吃了1.5G内存??? 给一个字段赋值问题 sql数据表生成excel问题后续 把变量名指定到表 有点难度的SQL语句,在线等待。 sql数据逆提取的问题 救我!用ASP访问数据库,不用odbc 而是直接联接,
if exists (select * from sysobjects where sysobjects.id=object_id
('#temp'))
drop table #temp
if object_id(N'tempdb.dbo.#temp) is not null
drop table @temp
如果是全局临时表(##开头),就会删除其他用户的临时表,局部临时表(#开头)不会。