Sqlite:使用Python的sqlite3:需要注意下commit方式与qt稍有不同import sqlite3class DBManager(): def __init__(self): self.db = sqlite3.connect("core.db") ...
分类:
数据库 时间:
2014-11-20 20:04:02
阅读次数:
612
gitsvn说明git pullsvn updategit addsvn addgit rmsvn rm,delgit commitsvn commitgit push将本地代码更新到远程版本库中。git logsvn log查看历史日志git revert 哈希值还原一个版本的修改(1)、git ...
分类:
其他好文 时间:
2014-11-20 13:38:07
阅读次数:
217
The process of Git commands Operation1. git commit -m 'fist post'Windows PowerShellCopyright (C) 2009 Microsoft Corporation. All rights reserved.C:\Us...
分类:
其他好文 时间:
2014-11-20 13:26:23
阅读次数:
212
编写一个良好的 git 提交信息
提交信息
我们作一次提交,都会提交相关的修改信息,一般这些信息当时都会仔细考虑留下应该留下的那些重要信息,比如为什么需要这次提交,提交解决什么问题等。
而且我们需要好好组织这些信息,一边以后查看,因为这些跟代码一样重要,他们是历史,就像课本一样,一旦留下错误的信息或者难以理解的信息,将会对
后来者,产生非常多的麻烦。
提交信息规范
一般来说,提交信息没...
分类:
其他好文 时间:
2014-11-20 00:08:31
阅读次数:
183
Git 中的对象 commit 1.本次提交的 committer 2.本次提交的注释 comment 3.0/1/N 个祖先(零个或一个或多个指向该提交对象的父对象指针) 4.指向暂存内容快照的指针 (如果恢复到某个提交, 则把分支指针指向这个 commit 对象, 把此...
分类:
其他好文 时间:
2014-11-19 17:52:55
阅读次数:
207
试过了很多种方法都没有成功,终于让我找到了这种方法!
首先在后台写代码:
Transaction tx = session.beginTransaction();
List list = session.createSQLQuery("select * from jike").list();
tx.commit();
List list1 = new ArrayList();
Iter...
分类:
数据库 时间:
2014-11-19 11:12:58
阅读次数:
165
一. git基础 二.git原理 Ⅰ.git目录 Ⅱgit对象 Git内部有四种对象,各种命令操作这四种对象,从而实现版本控制功能。 四种对象分别为:commit, tree, blob, tag PS:tag对象可以暂时忽略 ?通过一个示例git项目...
分类:
其他好文 时间:
2014-11-19 02:26:09
阅读次数:
293
刚做了个简单的测试。在两台硬件环境相同的实体机上分别装了Timesten11g和Oracle11.2.0.4在两边数据库中都建立一个表createtabletest(anumber,bvarchar2(20));commit;然后插入数据declareznumber;xvarchar2(20):=‘abc‘;beginforzin1..1000000loopinsertintotestvalues(z,x);end..
分类:
数据库 时间:
2014-11-19 02:19:58
阅读次数:
288
当我们clone下来代码后,默认会在某个default分支上。hg clone your-src-url代码库克隆下来后,查看一下当前代码库的状态14:30linc@Linc-Ubuntu:Demo$ hg summary
parent: 2014:xxxxxxxxxxxxxxx
This is a description.
branch: default
commit: 3 unknown (c...
分类:
其他好文 时间:
2014-11-19 01:47:33
阅读次数:
157
首先truncate是DDL语句,而delete是DML语句。truncate的删除比delete快很多,尤其是表数据量大的时候,原因是truncate执行过程中不产生undo,所以truncate也无法再回滚。而delete在commit之前肯定是可以回滚的。truncate的另一个特性是会将表的...
分类:
数据库 时间:
2014-11-17 21:04:33
阅读次数:
214