i have a query in mysql
insert into a_archive ( select * , "Zuned Ahmed" as archivedBy from B);
The above query executing fine in mysql, this does not support in oracle.
please suggest.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Please use this one instead:
Explanation:
When using Oracle database:
1- To specify literal strings, single quotes
''are used. Double quotes""serve a different purpose.2- If
*is specified without being prefixed with an alias, no other column is allowed. Otherwise,*must be prefixed with the table alias.3-
Insert ... Select ...statements follow exactly the same syntax as given above; using braces is not allowed.Hope this will solve your problem.