-- Get the Character to be traversed.
DECLARE getCh CHARACTER SUBSTRING(input FROM posStr FOR 1);
-- Get the least possible letter.
WHILE cnt2<=lenCh DO
DECLARE preCh CHARACTER SUBSTRING(input FROM cnt2 FOR 1);
IF preCh <=getCh THEN
set chOut= preCh||chOut;
END IF;
SET cnt2=cnt2+1;
END WHILE;
SET posStr=posStr+1;
SET cnt=cnt+1;
END WHILE;
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum