I want to save a copy of specific table with it's data. All I care is the structure and data. I don't want to copy the keys nor constrains.
I read this answer Copy table structure into new table but it's not quite what I need.
How it can be done?
I want to save a copy of specific table with it's data. All I care is the structure and data. I don't want to copy the keys nor constrains.
I read this answer Copy table structure into new table but it's not quite what I need.
How it can be done?
You are probably looking for CREATE TABLE AS SELECT, e.g.:
CREATE TABLE copy_table AS SELECT * FROM original_table;
CREATE TABLE copy_table AS TABLE original_table; - shorthand versionTABLE is much less flexible than SELECT - I would prefer answering it with select, as you can add any where or whatever to a statement, not just limit or what the possible option list itWHERE 1=0
create table copy_table as select * from original table?..