$dbType
$dbType :
Oracle数据库驱动
insertLastId() : integer
获取最后插入id ,仅适用于采用序列+触发器结合生成ID的方式 在config.php中指定 'DB_TRIGGER_PREFIX' => 'tr_', 'DB_SEQUENCE_PREFIX' => 'ts_', eg:表 tb_user 相对tb_user的序列为: -- Create sequence create sequence TS_USER minvalue 1 maxvalue 999999999999999999999999999 start with 1 increment by 1 nocache; 相对tb_user,ts_user的触发器为: create or replace trigger TR_USER before insert on "TB_USER" for each row begin select "TS_USER".nextval into :NEW.ID from dual; end;