Как принять объединение оператора выбора в L oop из Mysql Процедура получения всех значений из операторов выбора в одной таблице? Код: -
iterator:
Loop
IF LENGTH(TRIM(_BookingArray)) = 0 OR _BookingArray IS NULL THEN
LEAVE iterator;
END IF;
SET front = SUBSTRING_INDEX(_BookingArray,',',1);
SET frontlen = LENGTH(front);
SET TempValue = TRIM(front);
if not exists(select a.BookingNumber from applicationform a where a.BookingNumber =TempValue)
then
SELECT TempValue as NotExists;
end if;
SET _BookingArray = INSERT(_BookingArray,1,frontlen + 1,'');
END LOOP;