Oracle/PLSQL ORA-08002: sequence NAME.CURRVAL is not yet defined in this session
錯誤原文-sequenceNAME.CURRVALisnotyetdefinedinthissession錯誤原因-要執行CURRVAL指令前未執行NEXTVAL的最後一個序號處理辦法使用seq.CURRVAL前執行seq.NEXTVAL範例執行把最後一個序號用完SELECTa_seq.NEXTVALFROMdual; 後再執行循環所設定的序號SELECTa_seq.CURRVALFROMdual