use tempdb select name from sysobjects where name like '#cgwfbb%'
我是这样查的。所以是模糊查询,怎样完全查找。name
--------------------------------------------------------------------------------------------------------------------------------
#cgwfbb_____________________________________________________________________________________________________________00000000000B(1 row(s) affected)
我是这样查的。所以是模糊查询,怎样完全查找。name
--------------------------------------------------------------------------------------------------------------------------------
#cgwfbb_____________________________________________________________________________________________________________00000000000B(1 row(s) affected)
解决方案 »
- OpenDialog与写入文件发生冲突(delphi开发)大侠快来
- gettickcount函数在delphi7为何不能用?
- 重金懸賞解決問題
- 快~~~~~~一分钟都不能耽误
- 使用query添加sql语句插入非字符数据使用动态参数出现类型不匹配
- 用wise install master做安装文件,如何判断windows的版本?
- 谁知道ie里面的"另存为" 功能是怎么样的
- WinExec在delphiXE中失效
- 哪位有 CUTEFTP 的注册码,借用一下 !!!!
- 如何在Midas的应用服务器端获得客户端的IP地址
- 请问如何截取win2000信史服务消息的内容 并禁止其弹出MessageBox??
- 如何创建一个在用户退出之后还能运行的应用程序?
select name from tempdb..sysobjectsServer: Msg 3701, Level 11, State 5, Line -2118799728
Cannot drop the table '#cgwfbb', because it does not exist in the system catalog.
name
drop table #table1
只要是同一个连接,
if exists(select name from tempdb..sysobjects where name ='#cgwfbb' )
drop table #cgwfbb;
if exists(select name from tempdb..sysobjects where name ='#cgwfbb' )
执行这个反回结果为True. 还是不行。
我后来是这样解决这个问题的。if exists (select * from tempdb..sysobjects where id=object_id('tempdb..#cgwfbb')) drop table #cgwfbb;
执行结果正确, 但我不太明白id=object_id这个函数的用途