INSERT INTO t_aircraft (aircraft_type,aircraft_describe) SELECT #{aircraft_type},#{aircraft_describe} FROM DUAL WHERE NOT EXISTS (SELECT id FROM t_aircraft WHERE t_aircraft.aircraft_type = #{aircraft_type})