select id,
name,
topicid,
pid,
guid,
del_flag,
create_by,
create_time,
update_by,
update_time,
seqno,
orgid
from svy_lib_script_category
insert into svy_lib_script_category
name,
seqno,
topicid,
pid,
guid,
del_flag,
create_by,
create_time,
update_by,
update_time,
orgid,
#{name},
#{seqno},
#{topicid},
#{pid},
#{guid},
#{delFlag},
#{createBy},
#{createTime},
#{updateBy},
#{updateTime},
#{orgid},
update svy_lib_script_category
name = #{name},
seqno = #{seqno},
topicid = #{topicid},
pid = #{pid},
guid = #{guid},
del_flag = #{delFlag},
create_by = #{createBy},
create_time = #{createTime},
update_by = #{updateBy},
update_time = #{updateTime},
orgid = #{orgid},
where id = #{id}
delete
from svy_lib_script_category
where id = #{id}
update svy_lib_script_category
del_flag = 1,
where id = #{id}