How to fix the Oracle error PLS-00310: with %ROWTYPE attribute, ‘string’ must name a table, cursor or cursor-variable?

In this post, you’ll learn more about the Oracle ErrorPLS-00310: with %ROWTYPE attribute, ‘string’ must name a table, cursor or cursor-variable with the details on why you receive this error and the possible solution to fix it.

Oracle Error Description

PLS-00310: with %ROWTYPE attribute, ‘string’ must name a table, cursor or cursor-variable

Reason for the Error PLS-00310: with %ROWTYPE attribute, ‘string’ must name a table, cursor or cursor-variable

The %ROWTYPE attribute must be applied to an identifier declared as a cursor, cursor variable, or database table. This error occurs when %ROWTYPE follows some identifier that has not been so declared.

How to fix the Error PLS-00310: with %ROWTYPE attribute, ‘string’ must name a table, cursor or cursor-variable ?

You can fix this error in Oracle by following the below steps

Change the declaration or do not apply the %ROWTYPE attribute to the identifier.

Tags :

Leave Your Comment