創建oracle 序列是
create sequence 序列名稱 一般可以設定爲表名_id
比如表名是Rack_layer,那麼創建序列就是
create sequence Rack_layer_id 執行這條sql就可以了
查詢序列值就是下邊這條sql
SELECT Rack_Layer_ID.nextVal FROM dual;
在項目中的xml應用爲
Rack_Layer_ID.nextVal 寫在xml中insert的value中就可以了
創建oracle 序列是
create sequence 序列名稱 一般可以設定爲表名_id
比如表名是Rack_layer,那麼創建序列就是
create sequence Rack_layer_id 執行這條sql就可以了
查詢序列值就是下邊這條sql
SELECT Rack_Layer_ID.nextVal FROM dual;
在項目中的xml應用爲
Rack_Layer_ID.nextVal 寫在xml中insert的value中就可以了