を許可されていない私はsequnceのprac_seq作成しました:ORACLEの12C - ORA-02287:順序番号がここに
CREATE SEQUENCE prac_seq
START WITH 300
INCREMENT BY 10;
をそして私は次のようにそれを使用したい:
UPDATE pracownicy
SET placa_dod = prac_seq.CURRVAL
WHERE id_prac = prac_seq.CURRVAL;
をそして、私はエラーを取得します
Error report - SQL Error: ORA-02287: sequence number not allowed here 02287. 00000 - "sequence number not allowed here" *Cause: The specified sequence number (CURRVAL or NEXTVAL) is inappropriate here in the statement. *Action: Remove the sequence number.
なぜ私は上記のようなシーケンスを使用できませんか?
なぜあなたはしたいですか? –
'where'節でシーケンスを参照することは許可されていません。 –
[ORA-02287:シーケンス番号は許可されていません]の重複している可能性があります(https://stackoverflow.com/questions/41155090/ora-02287-sequence-number-not-allowed-here) –