select decode(max(Id),null,(select ids.currval from dual),max(Id)) id from users
这样提示此处不允许使用序号 要什么办法才能达到想要的效果呢?