摘要
介绍了一种在Oracle数据库中利用序列和触发器智能生成数据库表主键的方法。通过对所创建的一个简单地主键智能生成器的测试和分析,发现了单纯用行级触发器生成主键存在的局限性,并给出了相应的解决办法。
A method for generating primary key intelligently with sequence and trigger in Oracle database is illustrated in this article. By testing and analyzing the Intelligent primary key generator, a potential problem is found,which is caused by using a row level trigger in generating primary key and a solution is put forward.
出处
《山东科技大学学报(自然科学版)》
CAS
2004年第2期75-76,共2页
Journal of Shandong University of Science and Technology(Natural Science)
关键词
触发器
序列
主键
trigger
sequence
primary key