Can get us data back from a stored procedure in a select query?

Hello
Suppose I have a function GetSum(x,y) that returns the sum of two numbers x and y. We can call this function from a function sql like this:
select GetSum(4,5) SUM from dual;
But it's possible thanks to a stored procedure? for example, can I call a stored procedure from a select query, as I did above code?

bootstrap wrote:
Hello
Suppose I have a function GetSum(x,y) that returns the sum of two numbers x and y. We can call this function from a function sql like this:

select GetSum(4,5) SUM from dual;

But it's possible thanks to a stored procedure?

NO!

Tags: Database

Similar Questions

  • I lost the password I gave to a drive using Bitlocker in Windows 7, how can I return it or I can get the data in the back of the player?

    Hello

    I lost the password I gave to a drive using Bitlocker in Windows 7, how can I return it or I can get the data in the back of the player? Data are very important because by my studies are concerned. Help, please. Thank you!

    Hello

    I lost the password I gave to a drive using Bitlocker in Windows 7, how can I return it or I can get the data in the back of the player? Data are very important because by my studies are concerned. Help, please. Thank you!
    People like you that encryption data with bitlocker do it because they want their data accessible only by those who have the certificate. The sad news for you is that you have made a good choice with BitLocker: unless you have the certificate, your data remains inaccessible. There is no backdoor. If he had then BitLocker would be useless.
  • If I didn't save my iphone, is there a way I can get my data after restore?

    If I didn't save my iphone, is there a way I can get my data after restore?

    Unfortunately, no.

  • I just install an update of Adobe Reader and find now that I've lost all screen savers. Please can someone explain how I can get them all back!

    I just install an update of Adobe Reader and find now that I've lost all screen savers. Please can someone explain how I can get them all back!

    Hello

    try a restore of the system before this happened

    http://www.windowsvistauserguide.com/system_restore.htm

    If necessary do in safe mode

    Windows Vista

    Using the F8 method:

    1. Restart your computer.
    2. When the computer starts, you will see your computer hardware are listed. When you see this information begins to tap theF8 key repeatedly until you are presented with theBoot Options Advanced Windows Vista.
    3. Select the Safe Mode option with the arrow keys.
    4. Then press enter on your keyboard to start mode without failure of Vista.
    5. To start Windows, you'll be a typical logon screen. Connect to your computer and Vista goes into safe mode.
    6. Do whatever tasks you need and when you are done, reboot to return to normal mode.
  • block of data based on a stored procedure with the input arguments

    Hello

    I am able to create a block of data based on the stored procedure.
    but I want that procedure to take both of the input arguments and I am facing issue while setting the value for this input arguments from another block element.
    Please someone help, how to set the value of the input of another block-element of control argument? (Note: data block is based on the stored procedure)

    Thanks in advance,
    Jean François Anandan

    I have an example that really works

    in the ownership of block

    arguments of data source query that you have two sections

    names one argument he write the name of the argument on the right, type the setting, fashion and value: block1.name and then pass the value to the procedure

  • Can we do non-mandatory parameter of stored procedure?

    Can we make a parameter in the stored procedure as a non-mandatory? so that we can call the stored procedure with parameters?

    Assign a default value, for example

    p_someparameter IN INTEGER DEFAULT 0
    

    or

    p_someparameter IN INTEGER := 0
    

    Syntax of the parameter

  • How can I find a large amount of data from a stored procedure?

    How can I find a large amount of data to a stored procedure in an effective way?

    For example do not use a cursor to go through all the lines and then assign values to variables.

    Thanks in advance!

    >
    How can I find a large amount of data to a stored procedure in an effective way?

    For example do not use a cursor to go through all the lines and then assign values to variables.
    >
    Leave the query to create the object back to you.

    Declare a cursor in a package specification than the result set gives you desired. And to declare a TYPE in the package specification which returns a table composed of % rowtype to this cursor.

    Then use this type as the function's return type. Here is the code example that shows how easy it is.

    create or replace
        package pkg4
          as
            CURSOR emp_cur is (SELECT empno, ename, job, mgr, deptno FROM emp);
            type pkg_emp_table_type is table of emp_cur%rowtype;
            function get_emp(
                             p_deptno number
                            )
              return pkg_emp_table_type
              pipelined;
      end;
      / 
    
     create or replace
        package body pkg4
          as
            function get_emp(
                             p_deptno number
                            )
              return pkg_emp_table_type
              pipelined
              is
                v_emp_rec emp_cur%rowtype;
              begin
                  open emp_cur;
                  loop
                    fetch emp_cur into v_emp_rec;
                    exit when emp_cur%notfound;
                    pipe row(v_emp_rec);
                  end loop;
              end;
      end;
      / 
    
    select * from table(pkg4.get_emp(20));
    
         EMPNO ENAME      JOB              MGR     DEPTNO
    ---------- ---------- --------- ---------- ----------
          7369 DALLAS     CLERK2          7902         20
          7566 DALLAS     MANAGER         7839         20
          7788 DALLAS     ANALYST         7566         20
          7876 DALLAS     CLERK           7788         20
          7902 DALLAS     ANALYST         7566         20
    

    If you return a line an actual table (all columns of the table) so you don't need to create a cursor with the query a copy you can just declare the type like this % rowtype tables table.

     create or replace
        package pkg3
          as
            type emp_table_type
              is
                table of emp%rowtype;
            function get_emp(
                             p_deptno number
                            )
              return emp_table_type
              pipelined;
      end;
      / 
    
     create or replace
        package body pkg3
          as
            function get_emp(
                             p_deptno number
                            )
              return emp_table_type
              pipelined
              is
              begin
                  for v_rec in (select * from emp where deptno = p_deptno) loop
                    pipe row(v_rec);
                  end loop;
              end;
      end;
      / 
    
  • Can we get our data back, please?

    It seems that Motorola has changed available in the csv file that it creates. Becuause of this, data can no longer be imported about any program. Especially if you needed convert online to convert it to a .tcx.

    As much as I love watching it, I don't like for the site, so I need to import the data. Right now, I can no longer do...

    Could Motorola, you please give us one of the following options?

    (a) "old style".csv file "

    (b) some file format standard of industry (such as.tcx)

    Thank you very much!

    Allart

    You can convert your data into csv tcx. They have set and updated the online conversion tool.

  • I can get the data of a hygrometer using the RS232 port with the following T75.2F:H17.0% using a RS232 data logger format. I was wondering if I can collect this data for later analysis using Dasylab. Any help is appreciated.

    I can collect data from a hygrometer in a text file using the RS232 port with the following T75.2F:H17.0% format, these data are collected using a data logger software. I was wondering if I can collect this data for later analysis using Dasylab. Any help is appreciated.

    The setting below causes the error. Change for the second selection, output values of all channels.

  • I can log my wordpress site or rather I can get into the back part of my site, but I can see no longer the button edit on Firefox

    I use firefox 24 and it was working fine until the weekend last upward, then I could see is no longer the button edit on my wordpress site.

    The thing is that I can get my site through the url of site-wp-admin as cookies allow me to do it, but once I click on visit the site so I can't do anything because there is no edit button and not a connect button not more so I do not have the possibility of trying and failing, or succeed.

    It is curious, as it happened recently.

    Now, I have to use chrome to do all my editing because there is no problem on this browser

    If you connect to your admin pages by using a secure connection (HTTPS url), check the address bar to a notification icon "shield". This article explains what are it know if you find a: joint in Firefox content blocking

  • I have an old machine with Windows 2000 with SP 3. How can I get updated so I can get the data on the latest machines?

    There also IE5 which I can't seem to update or another. Ideas?

    Updated to what? You can copy the data to an external drive and then copy it on your new machine. You will need to reinstall all the programs of original media.

  • Games like solitaire, free cell, hearts, etc. accidentally has been removed from my computer. When I go into Control Panel, add or remove windows, windows components, I need the floppy disk that I don't have. Any ideas how I can get these games back?

    I have windows xp service pack 3 and internet explorer 7

    Hi dollarsfor6,

     

    Welcome to Microsoft Answers Forums.

    In most cases if the games are deleted from the computer files will remain on the computer.

    I suggest that you are looking for game files in the system32 folder.

    Click on Start menu later click on run and type c:\\windows\system32 in the following search of the window for the file of games like free cell. If you get the files in the system32 folder then copy the file to c:\\program files\start menu\ later in the game folder.

    If fails it above step, try a system restore to the point when the game was available on the computer.

    See the link below to learn how to perform the system restore.

    How to restore Windows XP to a previous state

    http://support.Microsoft.com/kb/306084

    If the fail of steps above, you will need the Windows XP CD to install games on the computer, check out the link for more information below.

    How do I add or remove games in Windows XP

    http://support.Microsoft.com/kb/307768

    Halima S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • How can I get the dates retrieved from the database to display in Spanish?

    I'm pulling a date from a MySQL database and need to display in Spanish. If it was in English, these are the two statements, I'd be using:

    #DateFormat (event_date, "mmmm") #.
    #DateFormat (event_date, "mmm d") #.

    I tried to use < cfset SetLocale ("Spanish (Standard) '") > in my Application.cfm, but it doesn't seem to work. I don't really know how it is supposed to be used or even if it would work if I had to use it properly.

    Any help would be appreciated.

    Thank you - CaddyX

    Thank you Paul. Now it works perfectly.


    #LSDateFormat (event_date, "mmmm") #.
    #LSDateFormat (event_date, "mmm d") #.
    ...

  • Anyone know how we can get a legitimate email from hotmail/live mail servers?

    Hi all

    One of our customers are having problems with people sending an e-mail to them to one account hotmail/live mail, getting a rebound, saying "Message rejected as spam by content filtering. I just put a random email address below. Hope someone has some ideals? They use an iPad to send emails (using the hotmail configuration wizard, so it has the correct outgoing smtp settings).

    Kind regards

    Reporting-MTA: dns; received sps1-blu0 - s21.blu0.hotmail.com - of-MTA: dns; Arrival of BLU0-SMTP298-Date: Thu, November 3, 2011 05:10:04-0700 Final-recipient: rfc822; * E-mail address is removed from the privacy * Action: a failed State: 5.7.1 Code of diagnosis: smtp; 550 5.7.1 message rejected as spam by content filtering.

    View all Windows Live and Hotmail questions in the appropriate forum found here:
    http://windowslivehelp.com/

  • How can I reset Firefox back from Welsh to English?

    3 years ago, that I changed the language of Firefox on my iMac from English to Wales in an excess of optimism while learning Welsh. I would like to revert to English for various reasons. Problem is that I can't negotiate the menus of the Welsh language to do something that was very simple in English, from what I remember.

    Can anyone help?

    You can find the full version of the current Firefox 29.0.1 version in all languages and for all systems operating here:

Maybe you are looking for

  • Air, 12.5.1.21, has ceased to work, before, open, on, windows, 7, machine, Webkit.dl l, error

    After updating to ITUNES 12.5.1.21 Get two (2) messages to close the program when you try to start itunes Details below Signature of the problem: Problem event name: APPCRASH Application name: iTunes.exe Application version: 12.5.1.21 Application tim

  • What is the support for the Firefox OS App ConnectA2?

    I have installier application from Firefox walked this much. But this app does not work. I asked weit for a SMS on my Mobile phonetics of a code. The Code has been sent, but no positive effect head Dillingen in the Code.

  • Fax on both sides

    How to fax on both sides of the original in a single connection without repeating fax for back-All in One printer-HPOfficejet 6500APlus-Windows 7.

  • Intel gfxUI opens at startup

    I own a Lenovo X 201 laptop and recently ran the ease of update from Lenovo and it installed/updated the graphics card Intel and Media Control Panel (GfxUI.exe). This application load and is maximized whenever my laptop boot and there is no option to

  • Screen saver does not react when I "wiggle" the mouse or press "Esc"; 'Enter', etc.

    I had the same screen saver running for centuries (it goes right through my photos), but in the last few weeks, I am unable to find the screen to 'wake up' 'wiggle' of the mouse or press "Esc"; 'Enter' etc etc.  Its very frustrating because I have to