首页 | 本学科首页   官方微博 | 高级检索  
     

数据库表中流水号触发器的研究
引用本文:颜波,孙宏波,黄必清,肖田元.数据库表中流水号触发器的研究[J].计算机工程,2006,32(12):55-56,59.
作者姓名:颜波  孙宏波  黄必清  肖田元
作者单位:1. 华南理工大学电子商务学院,广州,510006
2. 清华大学自动化系,北京,100084
基金项目:中国博士后科学基金;华南理工大学校科研和教改项目
摘    要:在信息系统的数据库表中用流水号做主键可以提高效率。选择创建触发器来完成流水号的自动增加一方面能够回滚,另一方面流水号可以是数字型、字符型和字符串型,分别适合数据记录增量大和增量小的数据表、流水号需要左填充的数据表。测试表明,该文提出的方法是可行的、有效的。

关 键 词:管理信息系统  Oracle数据库  触发器  流水号  物流工程
文章编号:1000-3428(2006)12-0055-02
收稿时间:2005-10-08
修稿时间:2005-10-08

Research on Trigger's Serial Numbers of Database Tables
YAN Bo,SUN Hongbo,HUANG Biqing,XIAO Tianyuan.Research on Trigger''''s Serial Numbers of Database Tables[J].Computer Engineering,2006,32(12):55-56,59.
Authors:YAN Bo  SUN Hongbo  HUANG Biqing  XIAO Tianyuan
Affiliation:1. College of E-business, South China University of Technology, Guangzhou 510006; 2. Department of Automation, Tsinghua University, Beijing 100084
Abstract:Regarding a seria number as a primary key in the database tables of the logistics information system can increase efficiency. On the one hand, that creating triggers is chosen to fulfill automotive increase of the serial number could rollback, on the other hand, the serial number may be a number ,type, a char type and a string type and fit respectively for database tables where data records increasing rapidly and slowly, and those serial numbers need padding on the left. It is proved that the design is available and feasible.
Keywords:Management information system(MIS)  Oracle database  Trigger  Serial number  Logistics engineering
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号