declare @name varchar(200)while(exists(select * from sysobjects where name like '表名前缀%'))beginselect @name=name from sysobjects where name like '表名前缀%...
分类:
数据库 时间:
2014-08-30 13:46:59
阅读次数:
221
The OleVariant type exists on both the Windows and Linux platforms. The main difference between Variant and OleVariant is that Variant can contain dat...
分类:
其他好文 时间:
2014-08-29 17:53:58
阅读次数:
201
有两个简单例子,以说明 “exists”和“in”的效率问题1)select * from T1 where exists(select 1 from T2 where T1.a=T2.a) ;T1数据量小而T2数据量非常大时,T1>T2 时,2) 的查询效率高。exists 用法:请注意 1)句中...
分类:
数据库 时间:
2014-08-29 17:51:38
阅读次数:
231
var seg = UserName; if (File.Exists(UserName + ".xml"))//c { string Name = "NotRemindBox"; XmlDocument xdocs = new XmlDocument(); xdocs.Load(UserN...
分类:
其他好文 时间:
2014-08-27 18:17:48
阅读次数:
171
--建库if exists(select * from sysdatabases where name = 'stuDB')drop database stuDBCreate database stuDBon primary( name = 'stuDB', filename = 'E:\work\...
分类:
数据库 时间:
2014-08-27 18:00:58
阅读次数:
340
判断list非空 <#if?users?exists?&&?users?size?>?0?>
????<#list?users?as?u>
????????${u.username}-----${u.password}
????</#list>
</#if> 判断对象非空 <#if?user??>
????use...
分类:
其他好文 时间:
2014-08-27 13:13:58
阅读次数:
464
if (File.Exists(xmlPath + "\\" + xmlName)) //判断文件是否寸在 { //存在的情况下 XmlDocument xmldoc = new XmlDocument(); xmldoc.Load(xmlPath + "\\" + xmlName); /...
分类:
其他好文 时间:
2014-08-27 12:29:17
阅读次数:
214
Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and there exists one unique longes...
分类:
其他好文 时间:
2014-08-26 19:09:06
阅读次数:
153
//数据库引擎,编码,字符校验码,备注create table if not exists t_basic_job ( name varchar(20) not null default '')engine=innodb DEFAULT CHARSET=utf8 collate=utf8_...
分类:
数据库 时间:
2014-08-26 19:05:36
阅读次数:
250
SELECT TOP 1000 [ID] ,[ParentID] ,[Name] ,[Content] ,HasChildren = ISNULL((SELECT 1 WHERE EXISTS(SELECT TOP 1 1 FROM t_Tree WHERE...
分类:
其他好文 时间:
2014-08-26 15:08:26
阅读次数:
192