SELECT "第一中学" as school, class, name, geography FROM test_table WHERE test = 1; 插入新table: REPLACE
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;
--结束END--
本文标题: mysql 给查询结果新增一个字段,并设定默认值
本文链接: https://www.lsjlt.com/news/6353.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
下载Word文档到电脑,方便收藏和打印~
2024-05-10
2024-05-10
2024-05-10
2024-05-10
2024-05-10
2024-05-10
2024-05-09
2024-05-09
2024-05-09
2024-05-09
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0