
数据库相关
Hubbert
这个作者很懒,什么都没留下…
展开
-
关于sqlite中的journal文件
SQLite by default creates the journal file at the start of a transaction, which is a good thing. Normally it deletes the file upon commit.You can change this behavior to simply truncate the file (no转载 2013-03-14 10:31:51 · 2973 阅读 · 0 评论 -
数据库索引、主键区别【微谈】
我们在使用SQL Server数据库的时候常常会创建主键和索引,那么主键和索引到底有什么样的不同呢?本文我们主要介绍了主键和索引的区别。主键和索引的区别如下:主键是索引,但索引不一定是主键。 主键具有唯一性,而只有唯一性索引才具有唯一性;主键的值不能为空,不能重复。 索引可以在程序中动态创建删除。也可以是任何有序的字段。如果在一个表中,列A、B、C 被设为主键的情况下,当需要将原创 2013-05-11 08:55:36 · 1521 阅读 · 0 评论