Hi,
I have to execute a select query result into a variable, so the script is :
go_table_name := upper(R.company_schema) || 'GENERIC_OBJECT_T' ;
qry := 'select count(1) into "goparent_constraint_company" from ' || go_table_name || ' where parent_row_id not in (select row_id from ' || go_table_name || ')';
EXECUTE IMMEDIATE(:qry);
But on calling the procedure , i get an error : [337] (range 3) INTO clause not allowed for this SELECT statement exception: INTO clause not allowed for this SELECT statement
What is the correct way to write this query?
Thanks,
Sooraj