Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Re: ORA-00936: missing expression

976366Nov 27 2012 — edited Nov 28 2012
hi,
i want to extract the data from existing table and im using this query,

select insert into employee || chr(10)
|| (emp_id,emp_name||chr(10)
|| ,hire_date) || chr(10)
|| values (||to_char(emp_id)||,||chr(10)
||emp_name||,|| chr(10)
||to_date(||to_char(hire_date,mm/dd/yyyy)
||,mm/dd/yyyy),||chr(10))
from employee;

but it showing the error

SQL> @'D:\dml.txt'
select insert into employee || chr(10)
*
ERROR at line 1:
ORA-00936: missing expression


help me out to solve this

thank you

Edited by: 973363 on Nov 27, 2012 1:02 AM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 26 2012
Added on Nov 27 2012
9 comments
3,193 views