I have an SQL table with the columns (primaryKey,name,age,weight) and I want to generate a new table containing all the data from the original but only the columns (primaryKey,age). Can anyone suggest the SQL command for that.
I have an SQL table with the columns (primaryKey,name,age,weight) and I want to generate
Share
CREATE TABLE new_tbl SELECT primary_key,age FROM orig_tbl ;Based on the docs.