优化删除语句
This commit is contained in:
parent
3a8b33eb32
commit
ccd879665a
|
|
@ -54,7 +54,7 @@
|
|||
|
||||
<update id="updateEBomMaterialUse">
|
||||
SET @@global.group_concat_max_len=804800;
|
||||
delete from t_bom_new_ebom_material_use;
|
||||
TRUNCATE TABLE t_bom_new_ebom_material_use;
|
||||
INSERT INTO `t_bom_new_ebom_material_use` (`row_id`, `material_no`, `parent_material_no`)
|
||||
|
||||
select min(b.row_id) rowId, b.material_no, GROUP_CONCAt( distinct a.material_no) as value_list
|
||||
|
|
|
|||
Loading…
Reference in New Issue