插入记录即返回当前记录ID insert into ab(BACKID,SELLER,) values (seq_ab.nextval,'222' ); select seq_ab.currval As id from dual;
这样写提示“无效字符”
如何才能取得插入记录即返回当前记录ID
------解决方案-------------------- insert into table values() select @@IDENTITY
------解决方案-------------------- insert into ab(BACKID,SELLER,) values (seq_ab.nextval,'222' );select @@IDENTITY;
------解决方案-------------------- seq.currval
------解决方案-------------------- select Web_adsseq.Currval ID from dual
------解决方案-------------------- select seq_ab.currval As id from dual; 不懂
------解决方案--------------------