0

I want to create (and fill) a table similar to an existing table in Oracle (PL-SQL).

I used this code (extracted from this question):

Select * into NewTable from OldTable

but this error occurred:

ORA-00905: missing keyword

I think this code works only in SQL-Server. so how can I handle it in Oracle?

1
  • select into t2 from t1 is SQL Server syntax for copying a table. In Oracle select into is for something different. Commented Jul 23, 2017 at 9:55

1 Answer 1

1

CREATE TABLE NewTable AS SELECT * FROM OldTable

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.