rje7 2 Junior Poster in Training
{
sqlplus -S ${DB_LOGIN}  <<  eosql
set echo off;
set feedback off;
set heading off;

WHENEVER SQLERROR EXIT FAILURE;

${1} 
}

can i pass the qurey as a prameter to this function? will that query get executed if the query is echoed as ${1}?