码迷,mamicode.com
首页 >  
搜索关键字:alter insert drop add    ( 57930个结果
Jdbc获取oracle中guid主键
上代码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
sql语句添加删除外键
--删除外键alter table HelpTextInfo drop constraint HelpTextInfo_Helptype_FK1--增加外键alter table HelpTextInfo add constraint HelpTextInfo_Helptype_FK1 fore.....
分类:数据库   时间:2014-05-08 11:47:17    阅读次数:344
mysql触发器
查看所有触发器 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的read函数读取文件,读取的数据比实际文件大小要少的问题
今天用VC下编译libevent的http-server示例,却发现用浏览器怎么也打不开网页,跟踪下来,发现运行到evbuffer_add_file 函数就阻塞了起初怀疑是 libevent的evbuffer_add_file函数实现有Bug,所以自己写了个简单的实现来替换 //evbuffe...
分类:其他好文   时间:2014-05-08 08:57:17    阅读次数:441
LeetCode:Insert Interval
题目链接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
MongoDB:最简单的增删改查(Oops,可能太简单了)
热身运动: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
Search Insert Position
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
Leetcode | Two Sum
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
mysql主从同步验证工具
(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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!