mysql 给查询结果新增一个字段,并设定默认值
时间:2020-05-28 15:50:22
收藏:0
阅读:146
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.cnblogs.com/zrmw/p/12981148.html
评论(0)