Hello everybody,One day I had problems with GUI svn client and a big headache how to commit my changes. I have found how to do that using Terminal and...
分类:
其他好文 时间:
2014-07-19 21:30:39
阅读次数:
197
1、代码中 某文件后面有 “M” 标记,表示该文件已被修改,需要 commit.(右键该文件 -> source control -> commitselected file...)2、代码中 某文件后面有 “A” 标记,表示该文件是新添加的,已受SVN管理,需要 commit.(右键该文件 -> ...
分类:
其他好文 时间:
2014-07-19 19:08:02
阅读次数:
245
Spring和Hibernate整合后,通过Hibernate API进行数据库操作时发现每次都要opensession,close,beginTransaction,commit,这些都是重复的工作,我们可以把事务管理部分交给spring框架完成。配置事务(xml方式)使用spring管理事务后在...
分类:
编程语言 时间:
2014-07-19 09:32:52
阅读次数:
32137
今天有一开发兄弟找我,说出现一奇怪现象,在存储过程中赋date类型的值,时、分、秒都丢失了,下面来做个试验:
SQL> drop table test purge;
SQL> create table test
(
fill_date date
);
SQL> insert into test values(sysdate);
SQL> commit;
...
分类:
数据库 时间:
2014-07-19 08:23:15
阅读次数:
269
数据库事务常见的三种现象:1脏读(dirty read):未提交读。(A修改年龄为20,B读出20后,A回滚为18。) 出现场景:大多数数据库默认的级别为提交读(SQLServer,Orcal),所以除非设置隔离级别为Readuncommitted,否则不会出现。 解决方案:SET TRANSACT...
分类:
其他好文 时间:
2014-07-19 00:31:01
阅读次数:
203
[MySQL5.6] 最近对group commit的小优化http://www.tuicool.com/articles/rEZr2q最近花了一些时间在做MySQL Group Commit的优化,关于Group commit的原理,这里不再赘述,有兴趣的可以翻阅我之前的博客http://mysq...
分类:
数据库 时间:
2014-07-18 19:29:31
阅读次数:
241
DECLAREPROCEDUREdept_insert_procASPRAGMAAUTONOMOUS_TRANSACTION;--自助事物BEGININSERTINTOdept(deptno,dname,loc)values(60,‘MLDN‘,‘北京‘);commit;END;BEGININSERTINTOdept(deptno,dname,loc)values(50,‘开发部‘,‘天津‘);dept_insert_proc();--调用存储过程ROLLBACK;END;/
分类:
其他好文 时间:
2014-07-18 17:05:00
阅读次数:
195
SQL> drop table test purge;
SQL> create table test as select * from dba_objects where rownum
SQL> update test set object_name='中国' where rownum
SQL> commit;
SQL> col object_name format a30
SQL>...
分类:
数据库 时间:
2014-07-18 14:10:03
阅读次数:
618
[MySQL 5.6] MySQL 5.6 group commit 性能测试及内部实现流程http://mysqllover.com/?p=581尽管Mariadb以及Facebook在long long time ago就fix掉了这个臭名昭著的问题,但官方直到 MySQL5.6 版本才Fix掉...
分类:
数据库 时间:
2014-07-18 10:36:59
阅读次数:
380
git 上传本地文件到github
1 git config --global user.name "Your Real Name"
2 git config --global user.email you@email.address
git init
git add .
git commit -m 'Test'
git re...
分类:
其他好文 时间:
2014-07-17 19:13:25
阅读次数:
222