Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » ElevateDB Technical Support » Support Forums » ElevateDB General » View Thread |
Messages 1 to 2 of 2 total |
Can I implement stored procedure in SQL which will return a result set? |
Thu, Sep 13 2007 9:05 AM | Permanent Link |
Zdzislaw Kowalski | Is it possible to create stored procedure in manner similar to this:
" CREATE PROCEDURE GetInfo() BEGIN SELECT TT.Name, NT.Notes FROM TestTable AS TT JOIN NextTable AS NT ON TT.ID = NT.ID; END; ". |
Thu, Sep 13 2007 3:26 PM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. timyoung@elevatesoft.com | Zdzislaw,
<< Is it possible to create stored procedure in manner similar to this: >> Yes, use this: CREATE PROCEDURE GetInfo() BEGIN DECLARE TestCursor CURSOR WITH RETURN FOR TestStmt; PREPARE TestStmt FROM 'SELECT TT.Name, NT.Notes FROM TestTable AS TT JOIN NextTable AS NT ON TT.ID = NT.ID'; OPEN TestCursor; END; -- Tim Young Elevate Software www.elevatesoft.com |
This web page was last updated on Sunday, May 5, 2024 at 10:18 AM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |