Javatpoint Logo

A small doubt in SQL Copy Table

By: abhish*** On: Sat Feb 11 13:34:44 IST 2017     Question Reputation0 Answer Reputation0 Quiz Belt Series Points0  0Blank User
you have given the code to copy data from one table to another table is

SELECT * INTO <destination_table> FROM <source_table>

but its not working in oracle database

the code below is working

INSERT INTO <destination_table> SELECT * FROM <source_table>
Up0Down

 
the 1st query is to insert a single row into a table it will not copy the entire data to copy the entire data from one table to another the second syntax is usedImage Created0Down

By: [email protected] On: Sun Feb 12 22:34:31 IST 2017 Question Reputation0 Answer Reputation0 Belt Series Points0 0User Image
Are You Satisfied :0Yes0No
 
Image Created0Down

By: [email protected] On: Sun Feb 12 22:40:42 IST 2017 Question Reputation0 Answer Reputation0 Belt Series Points0 0User Image
Are You Satisfied :0Yes0No