My Oracle Support Banner

Error 518 When Trying To Insert A Pl/Sql Record Using %Rowtype (Doc ID 315823.1)

Last updated on OCTOBER 09, 2023

Applies to:

Oracle Forms - Version 10.1.2.0.2 to 10.1.2.0.2 [Release Oracle10g]
Information in this document applies to any platform.
This problem can occur on any platform.



Symptoms

1. Receiving gthe  error Error 518 - This INSERT statement requires VALUES clause containing a
parenthesised list of values".
when try to insert values into a row %TYPE

declare
r_alias_rec xx.n%type;
r_alias_rec_b xx.v%type;
CURSOR c1 IS SELECT n FROM xx;
BEGIN
open c1;
FETCH c1 INTO r_alias_rec;
INSERT INTO xx (n) VALUES r_alias_rec;
close c1;
END;

2. But the same code works fine in the SQL *PLUS that matches the DB version


Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.