PLS-00229: Attribute expression within SQL expression



PLS-00229: Attribute expression within SQL expression..

Answer / guest

Cause: An attribute expression, such as SQL%NOTFOUND, was
used in a SQL statement, but attribute expressions are
allowed only in procedural statements.

Action: To workaround this limitation, assign the value of
the attribute expression to a variable, then use the
variable in the SQL statement. For example, replace the
statement INSERT INTO audits VALUES (c1%ROWCOUNT, ...); with
the following statements: row_count := c1%ROWCOUNT; INSERT
INTO audits VALUES (row_count, ...);

Please add more information about this Error

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More Oracle Errors Interview Questions

O2F-00326: Some characters in this name were not legal identifier characters

1 Answers  


ORA-12922: concurrent ALTER DATABASE [NO] FORCE LOGGING command is running

1 Answers  


NNC-00420: operation not allowed

1 Answers  


TNS-12600: TNS: string open failed

1 Answers  


ORA-13151: failed to remove exception record

1 Answers  


ORA-07561: szprv: $IDTOASC failure

1 Answers  


ORA-23467: flavor lacks object "string"."string"

1 Answers  


QSM-02024: no GROUP BY clause

1 Answers  


ORA-00712: cannot rename system tablespace

1 Answers  


ORA-02356: The database is out of space. The load cannot continue

1 Answers  


ORA-07244: ssfccf: create file failed, file size limit reached.

1 Answers  


CLSR-00002: Oracle error encountered while executing string

1 Answers  


Categories