rename field while copying to another table code example
Example: rename field while copying to another table
CREATE TABLE `Teachers` AS(
SELECT Student_ID AS Teacher_ID, Name, Address FROM `Students` );
CREATE TABLE `Teachers` AS(
SELECT Student_ID AS Teacher_ID, Name, Address FROM `Students` );