Hi I have the following code:
CREATE OR REPLACE PROCEDURE instead_of_select(
where_in_sname IN VARCHAR2,
where_in_city IN VARCHAR2)
IS
BEGIN
EXECUTE IMMEDIATE
'DECLARE rowss SAL%ROWTYPE;
BEGIN SELECT * INTO rowss from SAL where SNAME=' || where_in_sname ||
' and CITY='|| where_in_city ||';
END;';
END instead_of_select;
BEGIN
instead_of_select('Peel', 'London');
END;
BUUT I'm not able to figure out what its not liking when I run this. It gives me the following error
PL/SQL: ORA-00904: "LONDON": invalid identifier ORA-06550: line 2, column 11: PL/SQL: SQL Statement ignored ORA-06512: at "SYSTEM.INSTEAD_OF_SELECT", line 7 ORA-06512: at line 2 06550. 00000 - "line %s, column %s:\n%s" *Cause: Usually a PL/SQL compilation error.
Table exists with data in right, what problem could there be?
omg it's make me crazy