Oracle
 sql >> Datenbank >  >> RDS >> Oracle

Oracle, warum schlägt das Erstellen eines Triggers fehl, wenn ein Feld namens timestamp vorhanden ist?

Es gibt einen Hinweis auf Metalink zu diesem (227615.1) Auszug unten:

# symptom: Creating Trigger fails
# symptom: Compiling a procedure fails
# symptom: ORA-06552: PL/SQL: %s
# symptom: ORA-06553: PLS-%s: %s     
# symptom: PLS-320: the declaration of the type of this expression is incomplete or malformed
    # cause: One of the tables being references was created with a column name that is one of the datatypes (reserved key word). Even though the field is not referenced in the PL/SQL SQL statements, this error will still be produced.

    fix:

    Workaround:

    1. Rename the column to a non-reserved word.
    2. Create a view and alias the column to a different name.