Creating a trigger in Oracle Express

后端 未结 4 522
面向向阳花
面向向阳花 2020-12-24 05:14

I was trying to do something like auto-increment in Oracle 11g Express and SQL Developer. I know very little about Oracle and I am also new to triggers.

I tried run

4条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-24 05:50

    It seems that SQL Developer thinks that you are running a plain DML (data manipulation) script, not a DDL (data definition). It also thinks that :new.id is a bindable variable.

    Why this happens, I don't know; I can't reproduce it in Oracle SQL Developer 2.1.

    Try to open a new SQL worksheet window in the theschema schema and execute a "whole" script (not a statement) by pressing F5 (not F9).

提交回复
热议问题