为何生成临时表时,错误信息老是提示表名已存在,改了名字后还是这样,请各位指点 先if(exist())drop然后creat啊。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 if object_id('tempdb..#sourceheping') is not null --判begin drop table #tmp1 endif exists( select object_id('#sourceheping)) -- print 'exists'else print 'not exists' String sqlcreate1="if object_id('tempdb.. #sourceheping) is not null drop table #sourceheping create table #sourceheping (parent varchar(50),child varchar(50))";String sqlcreate2="if object_id('tempdb.. #tempyjf) is not null drop table #tempyjf create table #tempyjf (parent varchar(50),child varchar(50))"; 求一SQL函数,大侠们帮帮忙 请教一个事务的写法是否有问题,请进看例子!在线等,确认马上结贴 [十万火急] 关于sqlserver DTS 数据转换任务 得问题!!! 请教如何返回字串的字节数,而不是字符数? 游标: 为什么@@cursos_rows不能正确的返回行数? help!!感觉很简单,我就是不会! 如何返回表中的最后一条记录 急急急急急......在线等待!!!!!!!!!!!! 关于SQL Server的查询日志问题。 樹形問題,請求怎樣解決?? 关于使用select into语句写入临时表的问题 比较困难:如何精确的知道用户在数据库中锁定了我的那张表的那些记录!
begin
drop table #tmp1
end
if exists( select object_id('#sourceheping)) --
print 'exists'
else
print 'not exists'
String sqlcreate2="if object_id('tempdb.. #tempyjf) is not null drop table #tempyjf create table #tempyjf (parent varchar(50),child varchar(50))";