insert...select
将查询结果写入数据表
insert [into] tbl_name[(col_name,...)]select ...
举例:将查询出来的数据插入到数据表中
insert tdb_goods_cates(cate_name) select goods_cate
from tdb_goods group by goods_cate;
将查询结果写入数据表
insert [into] tbl_name[(col_name,...)]select ...
举例:将查询出来的数据插入到数据表中
insert tdb_goods_cates(cate_name) select goods_cate
from tdb_goods group by goods_cate;
2015-08-12