Insert Into PLAN_LIST ( plan_id, plan_list_code, plan_list_quantity, plan_list_ordered_quantity, plan_list_finished_quantity, goods_id, goods_property1, goods_property2, goods_property3, goods_property4, goods_property5, goods_property6, goods_property7, goods_property8, plan_list_remark )Values( #PLAN_ID#, #PLAN_LIST_CODE#, #PLAN_LIST_QUANTITY#, #PLAN_LIST_ORDERED_QUANTITY#, #PLAN_LIST_FINISHED_QUANTITY#, #GOODS_ID#, #GOODS_PROPERTY1#, #GOODS_PROPERTY2#, #GOODS_PROPERTY3#, #GOODS_PROPERTY4#, #GOODS_PROPERTY5#, #GOODS_PROPERTY6#, #GOODS_PROPERTY7#, #GOODS_PROPERTY8#, #PLAN_LIST_REMARK# ) select @@IDENTITY as value Update PLAN_LIST Set plan_id=#PLAN_ID#, plan_list_code=#PLAN_LIST_CODE#, plan_list_quantity=#PLAN_LIST_QUANTITY#, plan_list_ordered_quantity=#PLAN_LIST_ORDERED_QUANTITY#, plan_list_finished_quantity=#PLAN_LIST_FINISHED_QUANTITY#, goods_id=#GOODS_ID#, goods_property1=#GOODS_PROPERTY1#, goods_property2=#GOODS_PROPERTY2#, goods_property3=#GOODS_PROPERTY3#, goods_property4=#GOODS_PROPERTY4#, goods_property5=#GOODS_PROPERTY5#, goods_property6=#GOODS_PROPERTY6#, goods_property7=#GOODS_PROPERTY7#, goods_property8=#GOODS_PROPERTY8#, plan_list_remark=#PLAN_LIST_REMARK# plan_list_id=#PLAN_LIST_ID# Delete From PLAN_LIST plan_list_id=#PLAN_LIST_ID# Delete From PLAN_LIST plan_id=#PLAN_ID#