sql >> Database teknologi >  >> RDS >> Oracle

Oracle hvorfor mislykkes oprettelse af trigger, når der er et felt kaldet tidsstempel?

Der er en note på metalink om dette (227615.1) uddrag nedenfor:

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


  1. PostgreSQL automatisk stigning stiger ved hver opdatering

  2. Opbevar multidimensional array i databasen:relationel eller multidimensional?

  3. Hvordan bruger man regulært udtryk i sql-serveren?

  4. Sådan vælger du indlejret JSON i SQL Server med OPENJSON