本月博客排行
年度博客排行
-
第1名
青否云后端云 -
第2名
zw7534313 -
第3名
大家都说我很棒 - liyihz2008
- wy_19921005
- gengyun12
- hbxflihua
- e_e
- luxurioust
- dbagirl
- zysnba
- robotmen
- Alsmile
- gaozzsoft
- jywhltj
- cpongo1
- leslie26
- qepwqnp
- 解宜然
- cuityang
- gashero
- sichunli_030
- fantaxy025025
- vipbooks
- wallimn
- gdpglc
- ssydxa219
- javashop
- ranbuijj
- jickcai
- hanbaohong
- johnsmith9th
- appalese
- gaojingsong
- weiyides
- 淡看人生
- java-007
- zhangyi0618
- AVI
- laiyangdeli
- liunancun
- xpenxpen
- zhangdaiscott
- 龙哥IT
- conkeyn
- nychen2000
- ouanui
- lemonhandsome
- silverend
- jveqi
最新文章列表
oracle 实现自增auto_increament
在mysql中,实现字段自增,只用给他设置为auto_increase就ok了
这是简单的傻子啊(但是多数据库共享,分布式计算就不适用了,呵呵)
在oracle中没有这样便捷的功能,所以只能用sequence加trigger来解决这个问题
以下是一个Demo:
创建sequence
-- create sequence of id of the table ...