adspace


How do you copy a table in sql?

Answer Posted / Sanjeev Kumar Chauhan

In PostgreSQL, you can use the `CREATE TABLE ... AS SELECT` statement to create a new table and populate it with data from an existing table. For example: `CREATE TABLE new_table AS SELECT * FROM old_table;`

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what are the advantages of sql ? : Sql dba

1154


what is schema? : Sql dba

1163


What is the current version of postgresql?

1188


what are all the common sql function? : Sql dba

1141


how to start mysql server? : Sql dba

1279


what is collation? : Sql dba

1242


What is the current version of sql?

1106


how many tables will create when we create table, what are they? : Sql dba

1156


what are aggregate and scalar functions? : Sql dba

1142


Hi am new to PLSQL & facing problems in writing code like in SP, Functions, so any one having some SP coding with in depth explanation please share with me my Email ID suvarnaatsuvarna@rediffmail.com Or taking tanning on this please do contact me

2102


What is the best sql course?

1064


how to use regular expression in pattern match conditions? : Sql dba

1125


what is dbms? : Sql dba

1070


Do we need to rebuild index after truncate?

1154


Is primary key always clustered index?

1101