Hi all,
i need a way to save in a unix variable a value retrieved from sqlplus;
I saw this example, (from ask tom site), but there is no explanation about what means the -s option
code=`sqlplus -s / << EOF
select max(sal)
from emp
where empno=934;
EOF`
echo $code
I need a very easy example to store a value retrieved from sqlplus to a unix variable in a shell script.