mysql Insert into table xxx (SELECT from) 插入不重复的数据

正文开始

 Insert into fa_device_alarm_id(code,ctime,cuid,devicemodel) (SELECT log.eaNo,1624698742,1,de.deviceModel FROM `emsAlarm` log, device de where log.devCode=de.deviceCode group by log.eaNo,de.deviceModel)

正文结束

Mysql Innodb 引擎优化 参数 mysqldump导出多张表