Oracle
 sql >> Base de données >  >> RDS >> Oracle

Oracle pourquoi la création du déclencheur échoue-t-elle lorsqu'il existe un champ appelé horodatage ?

Il y a une note sur metalink à propos de cet extrait (227615.1) ci-dessous :

# 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.