摘要:
我们知道mysql中是不支持sequence的,一般是建表的时间使这个字段自增。 如 create table table_name(id int auto_increment primary key, ...); 或者alter table table_ame add id int auto_increment primary key //字段,一定设置为primary key 或者重设自增字段的起步值 alter table table_name AUTO_INCREMENT=n但是我们在oracle中经常使用sequence_name.nextval,或者在程序中我们使用先select 阅读全文
posted @ 2012-09-03 21:13
茄子_2008
阅读(16512)
评论(2)
推荐(0)
浙公网安备 33010602011771号