Get resultset from oracle stored procedure -


I am working on converting a stored procedure from Oracle to SQL Server. This stored procedure provides direct direct results. I mean that if you call a stored procedure such as a management studio, you get the direct result

The problem is that when I change to Oracle, I will not show resultset in Oracle against Walking

I have searched on the Internet and have seen that the stored procedure should yield a REF cursor, but I still have the process to run with the problem that

pseudo code N resultset Prap To write a small piece of code to receive :.

Do something with the cursor in the stored procedure call and received cursor

SQL Plus In:

/ P>

  SQL & gt; Process myproc (prc out sys_refcursor) to start 3 to open 4 to open prc * emp; 5 end; 6 / Process created SQL & gt; Var RC Rifcracker SQL & gt; Executed myproc (: RC) PL / SQL process successfully completed SQL & gt; Print RC EMPNO ETI Job MGR HORRADATE SIL COM Diplopo ---------- ---------- --------- ---------- - ---------- ---------- ---------- ---------- 7839 King President 17-NOV -1981 49 99 10 7698 Blake Manager 7839 01-May -1981 2849 30 7782 Clark Manager 7839 09 Jun -1981 2449 10 7566 Jones Manager 7839 02-Apr 1981 2974 20 7788 Scott Analyzer 7566 09 Dec-1982 2999 20 7902 Ford Analyzer 7566 03- December 1981 2999 20 7369 Blacksmith's work Clerk 7902 17 Dec 1980 9988 11 20 7499 ALLEN Vendor 7698 20-FEB-1981 1599 3009 30 7521 WARDS Seller 7698 22-FEB-1981 1249 551 30 7654 Martin Vendor 7698 28 September -1981 1249 1400 30 7844 Turner Seller 7698 08 September -1981 1499 0 30 7876 Adams Clerk 7788 12-Jan-1983 1099 20 7900 James Clerk 7698 03-Dec 1981 949 30 7934 Miller Clerk 7782 23-Jan- 1982 1299 10 6668 Umberto Clerk 7566 11 Jun-2009 19999 0 10 9567 Allbright Analyzer 7788 02 Jun -2009 76,999 24 10  

Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -