select id, name, chan_no, video_code, device_id, type, live_address, snap_url, media_server_id, stream_key from ard_channel insert into ard_channel id, name, chan_no, video_code, device_id, live_address, snap_url, type, media_server_id, stream_key, #{id}, #{name}, #{chanNo}, #{videoCode}, #{deviceId}, #{liveAddress}, #{snapUrl}, #{type}, #{mediaServerId}, #{streamKey}, update ard_channel name = #{name}, chan_no = #{chanNo}, video_code = #{videoCode}, device_id = #{deviceId}, live_address = #{liveAddress}, snap_url = #{snapUrl}, type = #{type}, media_server_id = #{mediaServerId}, stream_key = #{streamKey}, where id = #{id} delete from ard_channel where id = #{id} delete from ard_channel where id in #{id} delete from ard_channel where device_id = #{deviceId} delete from ard_channel