MySQL 经典赋值语句

阅读 63

2022-03-11

  1. 把某个表的某些字段赋值到新建表指定字段中,具体SQL如下: 
INSERT INTO sn_survey_task_dispatch_casepoint_info 
(task_no, case_point_no,case_point_type,case_point_name,
investigator,is_effective_point,province,city,district)
(SELECT taskno, casepointdetno , casepoint, casepointdet  ,investigator,
effectivepointflag , province,city,district
FROM sn_survey_task_dispatch_casepointdet WHERE taskno = 'DT202105215636');

精彩评论(0)

0 0 举报