write the SQL query to change the schema of table and insert some data in changed table
Answers
Answered by
2
- Renaming is the best option in order to change the schema of the table. The syntax is as follows:
RENAME TABLE old_tablename TO new_tablename;
- To insert data values into the new table the syntax is as follows:
INSERT INTO new_tablename (column1, column2, column3, ...)
VALUES (value1, value2, value3, ...);
Similar questions
Computer Science,
5 months ago
Math,
5 months ago
Science,
5 months ago
Social Sciences,
11 months ago
English,
11 months ago
Geography,
1 year ago
English,
1 year ago