SELECT '第一中學' as school, class, name, geography FROM test_table WHERE test = 1;

插入新table:
REPLACE INTO test_school(school, class, name, geography) SELECT '第一中學' as school, class, name, geography FROM test_table WHERE test = 1;

轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/35426.html
標籤:MySQL
上一篇:mysql基礎操作
下一篇:MySQL所有的安裝部署方式
