首先创建一张表Create Table TranTable( Id INT IDENTITY(1,1) PRIMARY KEY, Priority TINYINT--最大值255)1.再执行下面的语句:set XACT_ABORT ON begin tran INSERT INTO TranTabl...
分类:
其他好文 时间:
2014-06-27 20:32:49
阅读次数:
277
1、在源字符串Src中查找子串S,返回Src中S之前的部分Function Before( Src,S:string ): string ;Var F: Word ;begin if Src = '' then Before := ''; F := Pos(S, Src); if ...
分类:
其他好文 时间:
2014-06-27 20:18:50
阅读次数:
206
1.备份分为:物理备份和逻辑备份 物理备份:备份数据文件 控制文件 归档日志文件 逻辑备份:EXP EXPDP备份等物理备份为主,逻辑做补充2.错误的类型 media failure :介质失败.磁盘不能读写 user error: 操作错误 application error:应用程序错误3.备份...
分类:
其他好文 时间:
2014-06-27 18:25:20
阅读次数:
295
Editplus是一款很好的文本编辑器,但是默认会生成后缀名为.bak的备份文件,很容易造成文件目录的混乱。其实可以通过修改参数属性,让Editplus不要生成这种文件,以Editplus3.3.1为例,去掉create backup file when saving 上的勾就行了。如何设置Edit...
分类:
其他好文 时间:
2014-06-27 17:52:57
阅读次数:
195
运行脚本:begin xxx_plsql_generator_pkg2.form_view_iud_p(p_block_name =>'CONTRACT_T' ,p_table...
分类:
其他好文 时间:
2014-06-27 16:17:06
阅读次数:
233
标准库:一些最爱
fileinput
重要的函数
函数
描述
input([files[,inplace[,backup]])
便于遍历多个输入流中的行
filename()
返回当前文件的名称
lineno()
返回当前(累计)的名称
filelineno()
...
分类:
编程语言 时间:
2014-06-27 10:33:27
阅读次数:
366
awk‘BEGIN{FS="[,:/%]"}{print$3"\n"$4}‘1.txt
分类:
其他好文 时间:
2014-06-27 06:55:14
阅读次数:
202
例子:使v1的内容和v2的后半部分相同的最简单操作是什么?看下面四个答案:
①v1.assign(v2.begin()+v2.size()/2,v2.end());
②v1.clear();
copy(v2.begin()+v2.size()/2,v2.end(),back_inserter(v1));
③v1.insert(v1.end(),v2.begin...
分类:
其他好文 时间:
2014-06-26 13:28:22
阅读次数:
222
【题目】
There are N gas stations along a circular route, where the amount of gas at station i is gas[i].
You have a car with an unlimited gas tank and it costs cost[i] of gas to travel from station i to its next station (i+1). You begin the journey with an ...
分类:
其他好文 时间:
2014-06-26 13:27:05
阅读次数:
231
第2部分 数据库SQL语言数据库脚本中的begin与end 在数据库脚本中,begin与end是一对奇怪的单词。缺少它们,某些代码看起来会让人一头雾水;添加它们,代码的结构瞬间就清晰了。 确实,begin与end作为代码语句的开始和结束标志,可以让脚本程序的逻辑明确,易于阅读。 begin与end主要用在以下地方: 1. if、else、e...
分类:
数据库 时间:
2014-06-26 08:06:59
阅读次数:
274