上代码String sql = "BEGIN insert into
itil_task_plan (PLAN_CODE) values (?) returning id into ?;
END;";CallableStatement ps = conn.prepareCall(sql);ps......
分类:
数据库 时间:
2014-05-08 11:48:52
阅读次数:
518
--删除外键alter table HelpTextInfo drop constraint
HelpTextInfo_Helptype_FK1--增加外键alter table HelpTextInfo add constraint
HelpTextInfo_Helptype_FK1 fore.....
分类:
数据库 时间:
2014-05-08 11:47:17
阅读次数:
344
查看所有触发器 show TRIGGERSDELIMITER ;;CREATE TRIGGER
`trigger1触发器名` BEFORE UPDATE ON `触发器所在表名` FOR EACH ROW insert into templete
(old) values (NEW.bz);;DEL...
分类:
数据库 时间:
2014-05-08 10:36:30
阅读次数:
306
select * from smt_RolePermissiondelete from
smt_RolePermissiondelete from smt_RolePermission where ModuleId NOT
IN(105,110,111,112,113,73)insert into ...
分类:
其他好文 时间:
2014-05-08 09:59:13
阅读次数:
237
今天用VC下编译libevent的http-server示例,却发现用浏览器怎么也打不开网页,跟踪下来,发现运行到evbuffer_add_file
函数就阻塞了起初怀疑是 libevent的evbuffer_add_file函数实现有Bug,所以自己写了个简单的实现来替换 //evbuffe...
分类:
其他好文 时间:
2014-05-08 08:57:17
阅读次数:
441
题目链接Given a set of non-overlapping intervals,
insert a new interval into the intervals (merge if necessary).You may assume
that the intervals were ini...
分类:
其他好文 时间:
2014-05-08 08:40:51
阅读次数:
367
热身运动:1. 启动MongoDB shell => mongo.exe or
./mongo(先确保有一个mongod的实例):2. 切换到一个用于练手的namespace => use
xxxxxxx:增:db.[table].insert({[field]: [value]})查:db.[ta...
分类:
数据库 时间:
2014-05-08 07:59:42
阅读次数:
435
Given a sorted array and a target value, return
the index if the target is found. If not, return the index where it would be if
it were inserted in or...
分类:
其他好文 时间:
2014-05-08 07:29:02
阅读次数:
285
Given an array of integers, find two numbers
such that they add up to a specific target number.The function twoSum should
return indices of the two nu...
分类:
其他好文 时间:
2014-05-08 06:33:29
阅读次数:
339
(1)、pt-table-checksum工具名称
(2)、安装pt-table-checksum
#:wgetwww.percona.com/downloads/percona-toolkit/2.2.2/percona-toolkit-2.2.2.tar.gz
#:tar-xvfpercona-toolkit-2.2.2.tar.gz
#:perlMakefile.PL
#make&&makeinstall
(3)、授权
GRANTupdate,insert,de..
分类:
数据库 时间:
2014-05-08 02:34:32
阅读次数:
501