Hi guys
Been asked to make a shell script at work and this is part of it!
The problem is the sql statement marked in bold, when i add formatting to the date i get a 'ORA-000904' error stating that 'DDMMYYY' is not a column ?
It works if i take the formatting out but i need it in though for the task i am trying!
Thanks Kevin
Been asked to make a shell script at work and this is part of it!
Code:
Connection stuff :)!
VALUE=$( sqlplus -s userdetailshere<<EOF
set feedback off;
set linesize 60;
set serveroutput on;
[B]select to_char(sysdate, 'DDMMYYYYHHMM') from dual;[/B]
EXIT;
EOF)
echo $VALUE
The problem is the sql statement marked in bold, when i add formatting to the date i get a 'ORA-000904' error stating that 'DDMMYYY' is not a column ?

It works if i take the formatting out but i need it in though for the task i am trying!
Thanks Kevin