differences between the procedures and functions.

a little confusing... differences between procedures and functions...

1. a function returns only the unique value? can't return us multiple values?

2. can we use clause of 'back' and 'out' parameter at the same time in the same function

Thank you

Hello

Simply create a TYPE for strong cursors, returning the specified columns. For genereic, or the low sliders, there is a TYPE integrated, namely SYS_REFCURSOR.

Try this:

CREATE OR REPLACE function test_f(p_DEPTNO  in emp.DEPTNO%type)
  return SYS_REFCURSOR
  as
     REF_C     SYS_REFCURSOR;
BEGIN
     OPEN  REF_C  FOR   SELECT  *
                         FROM    EMP
                  WHERE   DEPTNO = P_DEPTNO;
     RETURN REF_C;
END;

You don't want to close the cursor service.

Always format your code.

Tags: Database

Similar Questions

  • Difference between stored procedure and procedure

    Hello

    could you please let me know what is the difference between the procedure and the stored procedure PL/SQL.

    Thank you.

    Best regards
    Mohan

    Published by: user10469960 on November 21, 2008 18:33

    There is no difference. The two terms are synonymous. Intrinsically, a PL/SQL procedure is stored in the Oracle data dictionary.

    Justin

  • There are the functional differences between the trial and the full version?

    There are the functional differences between the trial and the paid version for Labview 2009?  Thank you.

    He described the Labview eval version limitations: Limitations of the Evaluation Version of LabVIEW

    See you soon,.

  • difference between the view and the procedure

    Hi Master,

    Today I received a request from my senior technical leader... !!

    Q > what is the difference between the view and the procedure?

    I got response like this...

    A view represents the logic of one or more tables/views. It won't take no place in db... It is a virtual table, query will only store in db... useful

    for safety... If the main table has obtained changes... automatically discovers also change... etc.

    Proecudure is a db object will be performs a perticular action... It may or may not return values. ?

    But somehow, he isn't happy... He expects more... .very close view of diff. b & w and procedure.

    Please explain it to me...!

    Concerning

    AR

    874273 wrote:

    Hi Blu,

    Thanks for your replies...! But we think if notice and procedure will be the same no matter what point of view? Both are the same? If Design view... We can create a stored procedure?

    How a view and procedure may do the same thing?  They are two different things with different objectives.  You use the correct one depending on what you want to achieve; they are not interchangeable.

    And another question...!

    (Q) how you will store Japan, characters of China in a database table? will there be a new feature in Oracle 11 g?

    (A) I use dbms_lob package? Japan/China characters are multi byte characters... so we can use the nclob data type?

    is this correct... ?

    No, it not there no novelty in Oracle 11 g for the storage of Japanese or Chinese characters, because there is already a feature for their storage in previous versions as well.  It is determined by the parameters characterset and nationality that you use when you create the database.

    Why would you choose to store them in a LOB using DBMS_LOB?  Yes, they have multibyte characters, but if you have configured your database for the correct character sets, for example using UTF - 8, then you can store the characters in VARCHAR2, like any other language.  The only difference is that the storage of 4000 bytes limit still applies, so you maybe isn't able to store 4000 multibyte characters in a varchar2 column 4000 single-byte, it can be as little as 1000 characters if they are all characters in 4 bytes.  (Note: 12 c limit in SQL can be increased up to 32,767 characters, to harmonize it with variable varchar2 PL)

  • (1) now I use Lightrom 5.7 How to level 6 or CC? (2) what is the difference between the 6 and CC vercion? (3) when I used lightromm 3, inEXIF the distance in metres to the object that I took, in the virsions later that the function has disappeared, I coul

    (1) now I use Lightrom 5.7 How to level 6 or CC?

    (2) what is the difference between the 6 and CC version?

    (3) when I used lightromm 3, I could see in EXIF distance in metres to the object that I took, in the virsions later that the function is missing, it is very sad I am stiil waiting and I hope it would be possibble in new versions. Or this indication may possible by setting?

    (1) now I use Lightrom 5.7 How to level 6 or CC?

    Buy the standalone update from here: products

    Download CC version here: Adobe explore desktop apps | Adobe Creative Cloud

    (2) what is the difference between the 6 and CC version?

    See this comparison chart: Lightroom compare versions. Adobe Photoshop Lightroom CC

    (3) when I used lightromm 3, I could see in EXIF distance in metres to the object that I took, in the virsions later that the function is missing, it is very sad I am stiil waiting and I hope it would be possibble in new versions. Or this indication may possible by setting?

    Plugin ExifMeta of Rob Cole displays the distance between the subject field (and much more).  Unfortunately, his Web site seems to be down again.  He has been very active here, but he has not posted in several months.

  • The difference between the background and process

    In the document 'A BEA Tuxedo ATMI application using C programming', he mentions "by context basis" and "process basis. Please tell me the difference between the context and the process? Thx a lot.

    Bill,

    A context of Tuxedo is a connection to Tuxedo, also known under the name of an application association.

    If you do not use the TPMULTICONTEXTS flag when calling tpinit() and you do not specify a value MAXDISPATCHTHREADS is greater than 1 in the UBBCONFIG file for the servers then a framework and process will be the same.

    tuxputenv() is similar to the C library function putenv() function. tuxreadenv() reads a file and running tuxputenv() for each line of the file. tuxgetenv() is similar to the C library function getenv() function.
    The variables must be set before the time they serve. Thus, a tuxputenv() for a Tuxedo as the TUXCONFIG, TUXDIR, or WSNADDR system variable would be effective before when a client called tpinit() but would have no effect for a customer who has already called tpinit().

    Kind regards

    Ed

  • What is the difference between the area and the period key based?

    Hello

    In version 4.0 of the Apex, what is the difference between the region and the point function key (button created under article)?

    Thank you
    David...

    Hi David,

    I think that they have not changed, it is always the same as in the APEX 3.2 or 3.1...

    Region of buttons is placed on the top or the bottom of the region, the option buttons are treated like any other item and are placed inside the area as the other points.

    For more details, see the APEX Application Builder User Guide.

    brgds,
    Peter

    -----
    Blog: http://www.oracle-and-apex.com
    ApexLib: http://apexlib.oracleapex.info
    Work: http://www.click-click.at

  • What is the difference between the password and access code

    I get all the IDs and passwords and none are accepted

    "I received message' iPad requires your password after restart", but it does not accept passwords

    What is the difference between the password and access code

    Standard codes which block the iPad are 4 or 6-digit. You can set a more difficult to decode, personalized access code / password in the settings using letter and numbers if you wish.

    A password is a series of numbers, symbols and letters that a user putting in place to protect the information in a frame, a web site, e-mail, etc. This may actually be a word or series of words, if you wanted to set up in this way.

    Your iPad is looking for this 4- or 6-digit code. If you can remember, you must restore the device so for free.

    If you have forgotten the password for your iPhone, iPad or iPod touch, or your device is disabled - Apple supports

  • Difference between the G20 and G25 models

    Hi people!

    I searched your laptop and I was amazed by the Qosmio.
    When I was going to order it, I noticed that there are many models of the G20 with different specifications. Also, I found G25 on internet research and found no difference between the G25 and G20 except receiver TV G25 is NTSC and G20 was released on March and G25 was in June. Instead, they have the same specifications for the hard drive.

    I live in the Portugal and the model Qosmio I can find that this is the G20-118. I was looking for the model that has 2 x 100 GB SATA HD, but cannot not thought about it.

    Internet research I found Qosmio G20-111 which has 2 x 100 GB SATA HD, but on the web page mentioned that it was a Pentium III processor (ridiculous, isn't?). I was looking for more reliable information.

    Already searched for toshiba pages and found no specifications for all models I found 490LS on the research on the web as the G20 - 102, 105, 106, 108, 109, 111, 118, 123,...

    Can someone help me with this? Are there any reliable web page where I can see the differences between the models? is there a .pdf or anyone who can please give me some advice?

    Money is not a problem at this time to acquire the laptop, I'm looking for only the laptop performance more!

    Best regards
    João Pereira

    Hello

    It of very difficult to say what camera is best, because there are many models with different parts.
    However, I found page with description of the G20 and G25.
    Take a look at this link.

    http://www.releasereview.com/Toshiba-Qosmio-G20-105-108-114.aspx?d=0101000580926052005

    Good bye

  • What is the difference between the iwatcha and the Apple Watch?

    What is the difference between the iwatch and Apple Watch?  In the sales pitch pre for the iwatch, the price was given to about $17,000, while the Apple Watch sells in the $350-500 range. What gives?

    There is no such thing as a iWatch.

    There are three versions of the Apple Watch.

    Apple Watch Sport

    Apple Watch

    Apple Watch Edition

    https://www.Apple.com/watch/buy/

  • geometric matching: difference between the scores and correlation

    Hi all

    What is the difference between the scores and correlation in geometric correspondence?

    Hello

    the correlation score is based on pixel intensities while the score of the geometric game also considers the characteristics of the geometry. See the Concepts of Vision or (geometric matching-> discussion).

    I hope this helps.

    Best regards

    K

  • What is the difference between the IO and line?

    Hi all

    I'm using Labview 7 and in my mahcine I have an installed 6013 card. However, there was an interface card designed by someone else long ago, on the table, only AO0, AO1,..., A07, DIO0, DIO1,..., DIO7 were printed. In the program, I saw some code to write to digital Line.vi allows you to send data to the digial io. Say that I write for DIO 3, so I understand here DIO 3 means the channel of e/s 3, but online? What is the difference between the channel and the line? When I write the data to a single channel of e/s, are us wriitng a byte or a bit of it? Thank you.

    A channel is usually used with inputs/outputs analog.  Each AI or AO is a string.

  • 8.5.1 LabVIEW Student Edition - differences between the Mac and Windows versions?

    Hello

    I just bought the student of LabVIEW 8.5.1 version and I use Mac OS X 10.4.11. What are the biggest differences between the Mac and Windows versions, since the box came with a CD of installation of Mac and a Windows DVD Installer?

    See you soon

    Looks like you got the LabVIEW Student Edition Software Suite DVD.

    It comes with 6 boxes to tools, and the TME product, some (or all?) of those who are windows only (at least 8.5), for example:

    • Toolkit Digital Filter Design
    • Modulation Toolkit
    • SignalExpress
    • ...

    Since you have 8.5, you are missing also a few basic things that only recevied at the 8.6MAC support, like Mathscript, Control design and Simulation and native 3D graphics.

  • Major difference between the Group and the organizational unit?

    Pls explain me what is the difference between the groups and the organization unit in simple terms with an example in real time.

    Hello

    https://en.Wikipedia.org/wiki/Organizational_unit _ (computing)

    https://en.Wikipedia.org/wiki/Group _ (computing)

    See you soon.

  • What are the differences between the services and site domain group policy and group policy?

    What are the differences between the services and site domain group policy and group policy?

    Server must wonder about the Technet site.  http://social.technet.Microsoft.com/forums/en-us/home

Maybe you are looking for

  • How to compare the contents of the cell against a series list range of values?

    Hi all! I really need help. I have tried to help myself using the formula of numbers and other discussions Apple guide but do not find a method using the info. Unfortunately, in two days and no work done, I feel rather useless! I read the guides but

  • January 1-history will not delete

    TThis morning when I clicked on 'Clear history' and 'all time' list deleted apart from January 1. Any ideas?

  • Envy 15 360 t: adding memory

    I'm considering buying a want, it comes with 8 GB. Video AT hp and DOCS say I must go from the top, remove everything to memory.Is this correct? I have sort of the bottom. There is no access panel.Help please.

  • Memory RAM address mapping

    Before you answer, please read the question carefully. This isn't what you think. I know that the 'OS, 4 GB of RAM 32 bit' thing has been beatin to death. This however has never received upward. I put at least 20-30 hours of search and Google search

  • P0rn sites incorporated in I.E. 6.0 - need help to remove

    Thanks to an email from bad, I have now three p0rn sites incorporated into my program I.E. 6.0. Is there a way to "désincorporer" them, or should I just uninstall I.E. and reinstall it. If I need to unstall it, how should I do that? It is not in Add/