In Oracle, returning a recordset from a stored procedure is not as straight forward as simply write a SELECT statement in MSSQL stored procedure. We will need to make use of a reference cursor to do that.
-- First, declare the reference cursor.
Type YourCursorType Is Ref Cursor;
-- Then, write the SELECT statement as usual by assign the cursor.
Open YourCursorType For
Select Field_Names From Table_Name
Where Related_Conditions
-- Group By Field_Names
-- Order By Field_Names
-- Note that the Group By and Order By are optional statements.
For more information, please refer to: http://decipherinfosys.wordpress.com/2007/08/06/oracle-returning-a-recordset-from-a-stored-procedure/
Programming Explorer : This is the place that I would like to share with you about my IT knowledge and experience. Some of the articles are copied from others in the internet. Some are originally come from my findings.
Subscribe to:
Post Comments (Atom)
-
Finally Windows 7 shows its face, but only Beta version now. The latest version of Microsoft's Windows operating system became popular s...
-
Environment: Visual Studio Code v1.83.1 Symtomps: 1). When you try to debug your Flutter project, you see this error message at the Terminal...
-
The easiest way to do it using the keytool command. Example: keytool -printcert -jarfile <apk_file>
No comments:
Post a Comment