1.2.2.13.Copy table

  • LIKE

CREATE TABLE StudentsBackup1 LIKE StudentsDetails;
INSERT studentsBackup1 SELECT * FROM studentsdetails;
  • AS

CREATE TABLE studentsBackup2 AS SELECT * FROM studentsDetails;

Last updated

Was this helpful?