R.S
R.S

Reputation: 219

Create table (structure and data) from existing table in oracle

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?

Upvotes: 0

Views: 444

Answers (1)

Cyrus
Cyrus

Reputation: 2195

CREATE TABLE NewTable AS SELECT * FROM OldTable

Upvotes: 1

Related Questions