ExecuteSQL()
{
sql_query=""
sql_query=$1
if [ "$sql_query" != "" ]
then
sqlplus -s $dbuser/$dbpass << END_OF_SQL
set pages 0;
set linesize 285;
set long 999999999;
set head off;
spool $logdir/$fileName;
select dbms_xmlgen.getxml( '$sql_query' )xmlrow from dual;
spool off;
/
END_OF_SQL
fi
}
sql="select * from table where to_date(moddate,'DD-MON-YY') in to_date('12-FEB-08','DD-MON-YY')"
ExecuteSQL sql 1 > $logdir/temp.xml 2 > $logdir/error.log
Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.
When asked, what has been your best career decision?
Deciding to stick with EE.
Being involved with EE helped me to grow personally and professionally.
Connect with Certified Experts to gain insight and support on specific technology challenges including:
We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE