Click to See Complete Forum and Search --> : multiple into in a select statement


edli
06-30-2003, 06:57 AM
Hi,

I wanted to select more fields of a select statement into variables, but I saw that this was not possible doing this

select mt.firstfield into var1,mt.secondfield into var2,mt.thirdfield into var3
from my_table mt

How can i do this??

thanks
edli

jovery
06-30-2003, 07:25 AM
How about..


SELECT col1, col2
INTO var1, var2
FROM tablename;