I just wasted the last two hours of my life trying to create a table with automatically increasing primary key bases for this tutorial . The lessons are great, the problem I am facing is that Create Target will work if I have a column that is a timestamp and a table called a timestamp in the same table ...
Why doesn't the oracle indicate this as a problem when creating a table?
The following is the sequence of commands that I entered:
);
Creating a sequence:
CREATE SEQUENCE test_sequence START WITH 1 INCREMENT BY 1;
Creating a trigger:
CREATE OR REPLACE TRIGGER test_trigger BEFORE INSERTING ON myTable LINKS NEWS FOR EACH HAND START SELECT test_sequence.nextval INTO: NEW.ID FROM dual; END; /
Here is the error message I get:
ORA-06552: PL/SQL: Compilation unit analysis terminated
ORA-06553: PLS-320: the declaration of the type of this expression is incomplete or malformed
Any combination that does not have two lines with the word "timestamp" in them works fine. I would think that the syntax would be enough to distinguish between a keyword and a column name.
As I said, I donβt understand why the table is created perfectly, but the oracle crashes when I try to create a trigger ...
EXPLANATION
, , timestamp, . , , , .
, Oracle , . , , -.
Oracle, , , ? -, MySQL Oracle.