![]() | ![]() Products ![]() ![]() ![]() ![]() |
Home » Technical Support » ElevateDB Technical Support » Product Manuals » ElevateDB Version 2 SQL Manual » SQL/PSM Statements » LEAVE |
LEAVE [<Label>]
-- This function simply repeats a -- a string the specified number of times -- and returns the resultant string CREATE FUNCTION RepeatString(IN "StringToRepeat" VARCHAR, IN "RepeatCount" INTEGER) RETURNS VARCHAR BEGIN DECLARE I INTEGER DEFAULT 1; DECLARE Result VARCHAR DEFAULT ''; IF RepeatCount = 0 THEN LEAVE; END IF; REPEAT SET Result = (Result + StringToRepeat); SET I = (I + 1); UNTIL (I > RepeatCount) END REPEAT; RETURN Result; END
Deviation | Details |
Optional Label | The label is optional in ElevateDB, and if not provided, defaults to the current block being executed. |
This web page was last updated on Friday, January 31, 2025 at 08:42 AM | Privacy Policy![]() © 2025 Elevate Software, Inc. All Rights Reserved Questions or comments ? ![]() |