SELECT INTO OUTFILE ERROR [message #334296] |
Wed, 16 July 2008 02:15 |
shiju_t_v
Messages: 56 Registered: May 2007 Location: kannur,kerala
|
Member |
|
|
Helo
i am using a query for output all the columns to a file called result.txt , fields seperated by ',' .
The query is stated below
select * INTO OUTFILE '/tmp/result.txt' fields terminated by ',' from user_master;
But i got the error
ERROR at line 1:
ORA-00923: FROM keyword not found where expected
Please help me , thanks in advance
|
|
|
|
Re: SELECT INTO OUTFILE ERROR [message #334319 is a reply to message #334299] |
Wed, 16 July 2008 03:38 |
shiju_t_v
Messages: 56 Registered: May 2007 Location: kannur,kerala
|
Member |
|
|
I think SPOOL HAS somany drobacks
when i use the codes
SQL> Set echo off heading off feedback off
SQL> set COLSEP '|';
SQL> spool /tmp/user_master.txt
SQL> select * from user_master;
SQL> spool off
the out put file is as follows
SQL> select user_id , user_name from user_master;
bank |bank
sherin |sherin
LIJITH |lijith
RATHEESH |ratheesh
BINOY |binoy
ROOPAN |roopan
REEJESH |reejesh
JANAN |janan
NISHANTH |nishanth
SQL> spool off
I just want the contents of the table not the query
|
|
|
|
|
|
|