RDBMS
DrifterJ
You must be willing to let go of the life you have planned so as to have the life that is waiting for you. Like a drifter. This is the ultimate dream of my life. I will treasure her at the bottom of my heart.
展开
-
数据库断言
1、断言的概念 所谓断言就是一个谓词,它表达了我们希望数据库总能满足的一个条件。域约束和参照完整性约束是断言的特殊形式。2、SQL-92中断言的定义形式 create assertion check 3、断言的利弊 ① 一方面能够保证数据库的一致性; ② 另一方面,检测和维护断言需要很大的开销,系统效率降的很低。一般不主张使用断言!例如,在银行转载 2012-08-25 15:01:14 · 17285 阅读 · 0 评论 -
关系型数据库系列--(1)开篇杂记
工作3年了,接触的数据库不算多,第一份工作从事Web相关开发,用过MySQL,后来投身传统软件行业,就随波逐流用起来Oracle。但目前各家公司基本都有自己的框架或开发平台,对数据库的访问基本都隔离到DAO层中了,操作数据库基本都是面向对象操作(O/R Map),需要自己写SQL的地方都不多了,更别说其他一些更细节的操作。但对数据库相关的一些东西理解一下还是必要的。首先说一下数据库的事务,事务原创 2012-07-23 08:56:18 · 779 阅读 · 0 评论 -
DB2中执行SQL时,ur, cs, rs, rr的意思
1、ur(Uncommited Read):就是俗称“脏读“,在没有提交数据的时候能够读到更新的数据;即select数据时,无需等待正在对数据进行的update操作。2、cs(Cursor Stability):在使用游标稳定性隔离级别时,一个事务的结果集中只有正在被读取的那一行(游标指向的行)会被加上NS锁,其他未被处理的行上不被加锁。这种隔离级别只能保证正在被处理的行的值不会被其他并发原创 2012-10-23 10:57:32 · 7389 阅读 · 0 评论 -
DB2 错误信息集合【转自网易】
DB2错误信息(按sqlcode排序)sqlcodesqlstate说明00000000SQL语句成功完成 01xxxSQL语句成功完成,但是有警告+01201545未限定的列名被解释为一个有相互关系的引用+09801568动态SQL语句用分号结束+10002000没有找到满足S转载 2012-11-15 16:57:42 · 1776 阅读 · 0 评论 -
查看DB2常用数据库字典表(转自ITeye)
最近测试系统时想导出处记录然后插入到另一个表中,一直报外键约束问题,外键名称为F_517,在DbVisualizer中查看特定表,确实有这个约束,但苦于没有给出定义,不知该约束在哪张表上,搜索,得到如下sql语句: -- P :主键约束, F : 外键约束, tabname指定约束定义的表select * from syscat.tabconst where type in ('P',转载 2012-11-19 13:02:53 · 10148 阅读 · 1 评论 -
查询DB2数据库约束
近期在做一个功能测试时,需要往DB2数据库中插入一条数据,插入时,一直报“......SQLERRMC=WCSADMIN.MANIFEST.F_428,.....”错误,通过DbVisualizer Personal工具查看该表,显示有一个 F_428外键约束,但是无奈,就是不知道具体是哪一列(或哪几列,本人对这个系统整体数据库结构还不是很熟悉)!!上网搜了一下,得到一遍很实用的文章,得到答案:转载 2013-03-05 13:57:16 · 7776 阅读 · 0 评论