Hi Friends...
Please assist me to assign the result of a SQL query that results two column, to two variables.
Pls find the below code that I write for assigning one column to one variable. and please correct if anything wrong..
#! /bin/sh
no='
sqlplus -s uname/password@DBname <<EOF
set heading off
set feedback off
SELECT no from table_A where no=123;
exit
EOF`
--------------------------------------------------------------------
please help me, that I want to assign the result of below query to two variables 1.no and 2.name
select no,name from table_A where no=123
Thankyou for all of your answers!!