Oracle
 sql >> Base de Dados >  >> RDS >> Oracle

Como executar o SQL no script de shell

#!/bin/ksh
variable1=$( 
echo "set feed off
set pages 0
select count(*) from table;
exit
"  | sqlplus -s username/[email protected]_instance
)
echo "found count = $variable1"