原文:04. 字符串合并与拆分写法小结一. 字符合并 if OBJECT_ID('ConcatStr') is not null
drop table ConcatStr
GO
create table ConcatStr
(
ID int,
Code varchar(10)
)
GO
insert...
分类:
其他好文 时间:
2014-09-06 12:12:13
阅读次数:
147
Problem B:Cuckoo for HashingAn integer hash table is a data structure that supports insert, delete and lookup of integer values inconstant time. Tradi...
分类:
其他好文 时间:
2014-09-05 21:07:02
阅读次数:
275
int tmp = allContent.IndexOf(" "); //第一次出现的索引值int l = " ".Length;allContent = allContent.Remove(tmp, l); //在该索引处删除110allContent = allContent.Insert(.....
分类:
其他好文 时间:
2014-09-05 17:59:01
阅读次数:
199
//参数:数组和数组长度//注意:0-j-1是已经排序的,要插入第j个元素,0-j-1依次向后挪动一位直至j找到应该放的位置//算法时间复杂度:o(n的平方);空间复杂度:O(1)//应用:大部分已排序void Insert_Sort(int A[],int n){ int i,j; int...
分类:
其他好文 时间:
2014-09-05 15:45:41
阅读次数:
138
DDL(数据定义语言) Create、Drop、AlterDML(数据操纵语言) CRUD(增加(Create)、读取(Retrieve)(重新得到数据)、更新(Update)和删除(Delete))DCL(数据控制语言)增加数据 insert into 表 values ('值') --i...
分类:
其他好文 时间:
2014-09-04 23:30:40
阅读次数:
241
INSERT INTO QCircle.qc_news_center_timing (`name`,info,creat_time,whether_timing,timing_publish_time,publisher,isdelete,news_type,u_id,circle_id,wheth...
分类:
数据库 时间:
2014-09-04 18:24:09
阅读次数:
325
ORACLE 11G中有个新特性,当表无数据时,不分配segment,以节省空间 解决方法: 1、insert一行,再rollback就产生segment了。 该方法是在在空表中插入数据,再删除,则产生segment。导出时则可导出空表。 2、设置deferred_segment_creat...
分类:
数据库 时间:
2014-09-04 18:20:19
阅读次数:
278
drop table t1;
create table t1 (c1 char(2) primary key, c2 char(1) not null);
insert into t1 values ('A ','A');
select t1.c1 from t1
where t1.c1 in (select c2 from t1 union all select '0'||c2 c2 fr...
分类:
数据库 时间:
2014-09-04 16:58:39
阅读次数:
245
ExecuteNonQuery() 执行非查询语句,insert update delete 三种基本语句,返回的是数据库,受影响行数,
在insert中,如果有输出insered.id ,会返回一个结果集,这个结果集只包含一行一列,这一行一列,就是刚才新增的id 什么是结果集:sql语句被发送到数...
分类:
其他好文 时间:
2014-09-04 16:57:19
阅读次数:
163
declare @t table (C_ID int,PcName varchar(6),ParentID int)insert into @tselect 1,'安徽',0 union allselect 2,'安庆',1 union allselect 3,'安庆市',2 union allse...
分类:
数据库 时间:
2014-09-04 16:51:49
阅读次数:
258