Is there any way to pass a query to SQL*Plus through a variable?
I'm aware SQL*Plus has the capability to execute a file like:
sqlplus user/pass@db @filename
Within a kornshell script I'm trying to do:
query="select * from dual;"
sqlplus user/pass@db $query