mysql给查询结果新增一个字段,并设定默认值

database

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

 

 插入新table:

REPLACEINTO test_school(school, class, name, geography) SELECT"第一中学"as school, class, name, geography FROM test_table WHERE test =1;

 

以上是 mysql给查询结果新增一个字段,并设定默认值 的全部内容, 来源链接: utcz.com/z/533896.html

回到顶部