Insert Into GOODS_TEMPLATE (
goods_template_code,
goods_template_name,
goods_id,
goods_template_remark,
goods_template_order,
goods_template_flag
)Values(
#GOODS_TEMPLATE_CODE#,
#GOODS_TEMPLATE_NAME#,
#GOODS_ID#,
#GOODS_TEMPLATE_REMARK#,
#GOODS_TEMPLATE_ORDER#,
#GOODS_TEMPLATE_FLAG#
)
select @@IDENTITY as value
Update GOODS_TEMPLATE Set
goods_template_code=#GOODS_TEMPLATE_CODE#,
goods_template_name=#GOODS_TEMPLATE_NAME#,
goods_id=#GOODS_ID#,
goods_template_remark=#GOODS_TEMPLATE_REMARK#,
goods_template_order=#GOODS_TEMPLATE_ORDER#,
goods_template_flag=#GOODS_TEMPLATE_FLAG#
goods_template_id=#GOODS_TEMPLATE_ID#
Delete From GOODS_TEMPLATE
goods_template_id=#GOODS_TEMPLATE_ID#