All articles| All Pictures| All Softwares| All Video| Go home page| Write articles| Upload pictures

Reading number is top 10 articles
理解C#值类型与引用类型_[Asp.Net教程]
ASP.NET,3.5,Extensions新特性:ASP.NET,Dynamic,Data,体验1_[Asp.Net教程]
asp.net连接mysql_[Asp.Net教程]
PHP网页编码问题:任意字符集正常显示网页的方法_php资料_编程技术
PHP脚本的8个技巧(6)PHP和COM_php资料_编程技术
visual c++中调试窗口(Watch窗口)
新瓶旧酒ASP.NET,AJAX(6),-,客户端脚本编程(Sys.WebForms命名空间下的类)_[Asp.Net教程]
ASP.NET,与,Ajax,的实现方式_[Asp.Net教程]
ASP.NET自动检测用户名是否注册(利用AJAX技术)_[Asp.Net教程]
ASP.NET中散列加密密码_[Asp.Net教程]
Reading number is top 10 pictures
Female model behind the bitterness, often being overcharged1
星星命名法则
[猫扑大杂烩]华东师范墙上看到的捐精告示 15毫升3600元
Sora aoi calligraphy show
中国处女图鉴1
西班牙山村小景5
南昌铁路局宜春车务段攸县车站铁路职工福利房被开发商侵占
NeedWallpaper9
Household design classic black and white
29 the belle stars after bath figure5
Download software ranking
White deer villiage
Unix video tutorial18
终极变速大师Speeder3.26
Dance with duck(male prostitution)
The cock of the Grosvenor LTD handsome
Unix video tutorial7
Call Of Duty5
Take off clothes to survival
Sora aoi, the maid, students' uniforms
Boxer's Top ten classic battle7
归海一刀 published in(发表于) 2014/2/3 6:42:43 Edit(编辑)
判断临时表是否存在的新方法_[SQL Server教程]

判断临时表是否存在的新方法_[SQL Server教程]

判断临时表是否存在的新方法_[SQL Server教程]


IF OBJECT_ID('tempdb..#') IS NOT NULL
DROP TABLE #

此句检查是否存在 临时表'#'


OBJECT_ID此函数返回数据库对象标识号


用OBJECT_ID可以举一反三实现别的功能


如:


if exists (select * from sysobjects where objectproperty(object_id('PerPersonData'),'istable') = 1)


整条语句的意思是判断数据库里有没有存在PerPersonData这样一张表。


OBJECTPROPERTY:返回当前数据库中对象的有关信息。1表“真”。同样可以写成OBJECTPROPERTY(id, sUserTable) = 1


来源:http://blog.csdn.net/lee576/archive/2006/10/09/1327847.aspx







添加到del.icio.us 添加到新浪ViVi 添加到百度搜藏 添加到POCO网摘 添加到天天网摘365Key 添加到和讯网摘 添加到天极网摘 添加到黑米书签 添加到QQ书签 添加到雅虎收藏 添加到奇客发现 diigo it 添加到饭否 添加到飞豆订阅 添加到抓虾收藏 添加到鲜果订阅 digg it 貼到funP 添加到有道阅读 Live Favorites 添加到Newsvine 打印本页 用Email发送本页 在Facebook上分享


Disclaimer Privacy Policy About us Site Map

If you have any requirements, please contact webmaster。(如果有什么要求,请联系站长)
Copyright ©2011-
uuhomepage.com, Inc. All rights reserved.