adspace
How can you create an empty table from an existing table?
Answer Posted / Aman Saxena
"To create an empty table with the same structure as an existing table in SQL, use the CREATE TABLE AS SELECT * FROM table_name WHERE 0=1 command"
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
what are the advantages of sql ? : Sql dba
Is inner join faster than left join?
how many tables will create when we create table, what are they? : Sql dba
Does group by remove duplicates?
What is your daily office routine?
What is the current version of postgresql?
what is bcp? When does it used? : Sql dba
How do I remove duplicates in two columns?
What is the best sql course?
Can we use distinct and group by together?
what is collation? : Sql dba
Is primary key clustered index?
define sql insert statement ? : Sql dba
how to escape special characters in sql statements? : Sql dba
how to start mysql server? : Sql dba