mysql 给查询结果新增一个字段,并设定默认值
SELECT '第一中学' as school, class, name, geography FROM test_table WHERE test = 1;
SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。
插入新table:
REPLACE INTO test_school(school, class, name, geography) SELECT '第一中学' as school, class, name, geography FROM test_table WHERE test = 1;
更多精彩