I'm trying to do a SELECT INTO using Oracle. My query is:
SELECT * INTO new_table FROM old_table;
But I get the following error:
SQL Error: ORA-00905: missing keyword
00905. 00000 - "missing keyword"
Any ideas what's wrong?
The Standard behavior of the above should be as I originally thought: However Oracle implemented it totally differently in their own dialect of SQL Oracle Docs on Insert ... Select
select into
to create a new table is not part of the standard. The SQL standard to create a table based on a select iscreate table .. as select ...
. In the SQL standardSELECT INTO
is defined to read a column value into a variable in a programming language – a_horse_with_no_name