If you are coding embedded SQL, every SELECT/FETCH statement should have the INTO Clause
SELECT col1,col2 into :col1,:col2 from table1
or
FETCH Cursor1 into :col1,:col2
Of course, SELECT Statement in a cursor defn is an exception
(Pl check the syntax)
Cheers
Sathyaram
Quote:
Originally posted by saikrishna_dv
Thanks for the reply.
But when I try to execute this in db2 using strsql
then it says,
INTO clause missing from embedded statement.
Am I doing something wrong ??
-Sai
|