select id, name, chan_no, device_id from ard_channel insert into ard_channel id, name, chan_no, device_id, #{id}, #{name}, #{chanNo}, #{deviceId}, update ard_channel name = #{name}, chan_no = #{chanNo}, device_id = #{deviceId}, 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}