Site Menu
- Home
- Products
- NexusDB
- Nexus Quality Suite
- NexusDB Drivers & Connectors
- Nexus Remoting
- Nexus Memory Manager
- Some of our Customers
- Testimonials and use(r)s
- Downloads
- Documentation
- Support
- Pricing & Orders
- About
- Community
- My Nexus
- Recently Updated ...
- Search...
- Site Login
Search
REPEAT statement
Wed, 03/04/2009 - 20:02 | hdanzl
Repeat the execution until the condition is true.
Syntax
REPEAT UNTIL <search condition> END REPEAT |
Usage
The REPEAT statement is used to specify a repeated iteration of the statement block until the search condition is true.
See also: WHILE statement
Examples
1) | The following example shows the REPEAT statement used in SQL code: |
DROP FUNCTION IF EXISTS dummyFunc;
CREATE FUNCTION dummyFunc( p1 INTEGER )
RETURNS INTEGER
BEGIN
DECLARE v1, v2 INTEGER;
SET v1 = p1;
SET v2 = p1 * 10;
REPEAT
SET v1 = v1 + p1;
UNTIL v1 = v2
END REPEAT;
RETURN v1;
END;
SELECT dummyFunc( 10 ) FROM #dummy;
Conformance
SQL:2003 standard |
- - |
SQL/PSM Feature P002-11 "REPEAT statement" Beginning and ending statement labels are not supported |
Questions? Problems?
- Interested to buy but something put you off?
- Can't find what you're looking for?
- Have a suggestion?
Let us know. If you're having trouble contacting us, please check here.
Site Updates
- Dec 4 2024 - 1:53pm
- Dec 4 2024 - 1:48pm
- Nov 19 2024 - 1:04pm
- Oct 17 2024 - 10:27am
- Jul 24 2024 - 1:22pm