oreacle库有序列T_ID,如何获取当前值
最佳答案
两个方案,若在一个session中用过了(有nextval),那就可以用
select t_id.currval from dual;
若没有用过,可以用
select last_number from user_sequence where sequence_name='T_ID';
最佳答案由网友 whoami1978 提供
其他回答
暂无其它回答!
两个方案,若在一个session中用过了(有nextval),那就可以用
select t_id.currval from dual;
若没有用过,可以用
select last_number from user_sequence where sequence_name='T_ID';
暂无其它回答!