Oracle
 sql >> Datenbank >  >> RDS >> Oracle

So führen Sie SQL im Shell-Skript aus

#!/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"