What is the difference when you call the function table() or through double.

Hello
Let's say we have feature like this (from asktom):
CREATE OR REPLACE FUNCTION non_pipe_fnc
    RETURN all_obj_tt IS
        all_obj  all_obj_tt := all_obj_tt();
    BEGIN
        FOR r IN (SELECT * FROM ALL_OBJECTS)
        LOOP
            all_obj.EXTEND;
            all_obj(all_obj.COUNT) := all_obj_type(r.OWNER,r.OBJECT_NAME,r.SUBOBJECT_NAME,r.OBJECT_ID,r.DATA_OBJECT_ID ,r.OBJECT_TYPE,r.CREATED,r.LAST_DDL_TIME);
        END LOOP;
       RETURN all_obj;
   END non_pipe_fnc;
/
I can call him as select * from table (non_pipe_fnc);
or
Select double non_pipe_fnc;

Is there a difference, performance wise or another?
Kind regards.
Greg

I can call him as select * from table (non_pipe_fnc);

It returns all the columns in all_obj_tt

or
Select double non_pipe_fnc;

It returns a single column of type all_obj_tt

Tags: Database

Similar Questions

  • When you call a function in a shared library, are copied locally settings?

    I have a shared library with a function which the header is:

    void __cdecl nextevent (double entry [], int32_t len);

    When it is called it sends the values in [entry] to the input control:

    This vi is compiled into a DLL that uses the header above.

    Now, my question is: which of these operations is good:

    1. the input control is a reference to the entry in array [], no value is copied.

    2. the values of the Input [] array are copied into the input control, the local copy is used by the vi, then the values of the local copy is deleted/trimmed.

    It seems reasonable that 1 is good, but I can't be sure, and I see no way to check.

    For this particular case, option 2 is valid. The reason is that the tables of LabVIEW are not just pointers to a memory location but the handles. And there is no legal way to create valid LabVIEW handles of a runtime C allocated memory pointer. If LabVIEW transforms the table pointer entering a handle which is basically nothing else that allocate the handle with a sufficient size to contain all the data in the table and then copy the data from the table pointer in this handle. After the call, the handle is properly released.

  • What are the functional differences between 'Microsoft Research détours' and the alternative open-source 'EasyHook?

    What are the functional differences, if any, between MS detours and the alternative open source EasyHook?

    http://www.microsoftstore.com/store/msusa/en_US/PDP/Microsoft-Research-detours-v3-professional/ProductID.253663300

    https://easyhook.github.IO/index.html

    This issue is beyond the scope of this site (for consumers) and to be sure, you get the best (and fastest) reply, we have to ask either on Technet (for IT Pro) or MSDN (for developers)
    *
  • The server responds, "Forbidden" when you try to access email account through Outlook.

    The server responds, "Forbidden" when you try to access email account through Outlook.
    All e-mail messages are old (latest is July 2009). What can I sinc Outlook with e-mail account current?

    Outlook:

     

    http://www.Microsoft.com/Office/Community/en-us/flyoutoverview.mspx

    Office newsgroups

    http://www.Microsoft.com/Office/Community/en-us/default.mspx?DG=Microsoft.public.Outlook.General&lang=en&CR=us

    Discussions of general issues of Outlook.

    They will help you with your Outlook questions when repost you in the Office discussion groups above.

    See you soon.

    Mick Murphy - Microsoft partner

  • Pass a function when you call onClick for a button (UI)

    Hello

    I m now studying and I adventure in the creation of the user interface of the Script. I m enjoy!

    I m having the following problem: I have added a button in a dialog box and want to tell script to execute some commands when users click the button. It is therefore a simple (bad example):

    var DLG = new window ('dialogue', 'My dialogue box', [0,0,0,0])

    DLG. Size = [500 500]

    DLG. Location = [300 300]

    var b = dlg.add ("button", [0,0,0,0], "Run")

    b.Location = [20, 180]

    b = [80, 30]

    DLG. Show()

    b.onClick = test () //the problem is here

    function test() {}

    Alert ("test")

    }

    -------

    All is fair. But the onClick event fails the test of the function I m passing! What Miss me?

    I know if I'm using

    b.onClick = function () {}

    ...

    }

    It works... but I´d as the function to call when you call the onClick instead of directly created. Do not know if I m able to explain it better.

    Thank you for the help

    Best regards

    Gustavo.

    The standard would be...

    var dlg = new Window ("dialog", "My dialog", [0,0,0,0])
    dlg.size = [500,500]
    dlg.location = [300,300]
    var b = dlg.add("button", [0,0,0,0], "Run")
    b.location = [20, 180]
    b.size = [80, 30]
    b.onClick = function(){ //the problem is here
    test();
    }
    dlg.show()
    function test(){
      alert("teste")
    }
    
  • FRM-40735 / ORA-06508 when you call procedure of a fastened package

    Hi all
    I have a problem when you call a procedure in one of my attached libraries. the code is:

    When upper (trim (NOT_MSG_NAME)) = "REN_MSG_REQ_REG_PERMENANT" then SERV. CLFRM_PBL_NRQP_F(:Parameter.NOTIFICATION_ID);

    and it gives me FRM-40735 indicating that an ORA-06508 has occurred during the call to the procedure.
    Important and funny thing is when I add the path to the library, it works very well!
    When I join, remove the path, it won't as I said...

    the location of the library is: D:\DevSuiteHome\cgenf61\ADMIN, the path is added in the FORMS_PATH and all others
    libraries attached to the form in the same way are working well!

    I use the Forms 10.1.2.0.2 generator and the platform is windows and I migrated forms 9.0.4.0.19
    anyone with any ideas what may be the problem?

    Hello

    Please check the path again and also to create working directory by modifying formsweb.cfg.

    hope this helps you.

    Sarah

  • Synchronize data when you call another VI

    Saying: I A.i and B.vi called B. I want to display a waveform to A and B collects data in a while loop.

    The question is how the waveform is updated in real time, then B is running? I tried global variables, but looks A.i isn't in the thread when you call B, so the data may not switch to A real-time.

    Any suggestions?

    You want to search for ' Producer/consumer' of info on this design pattern. It consists of a producer who share data using a Motor of Action or a queue to pass data between threads.

    Another approach might be to use a control reference for waveform display (table or graph) and use 'the 'Value' property to write to the display in a manner SIMILAR to the writing comes to the Terminal.

    Ben

  • What is the function of support biredirectional activate the tab of the printer properties ports?

    What is the function of support biredirectional activate the tab of the printer properties ports?

    Back in the day, the printers were an output device only when the computer would simply send your print job to the printer and it would print (or not).  Now printers 'reply' to your computer and notify you levels of ink and toner low, paper jams, termination of success/failure, etc.    Enable bidirectional support allows the printer to 'reply' to your computer.

    HTH,
    JW

  • What is the function of the keys filter & stick in PC

    Original title: keys to filter/Stick

    What is the function of the keys filter & stick into the PC. What is functions of these keys.

    Hello

    FilterKeys is a keyboard feature that instructs the keyboard to ignore brief or repeated keystrokes. Using FilterKeys, you can also slow down the speed at which a key repeats when you hold.

    For more information visit:

    To turn on FilterKeys

    http://www.Microsoft.com/resources/documentation/Windows/XP/all/proddocs/en-us/access_filterkeys_turnon.mspx?mfr=true

    StickyKeys is designed for people who have difficulties to maintain two or more keys simultaneously. When a shortcut requires a key combination, such as CTRL + P, StickyKeys you press a key amending (CTRL, ALT, or SHIFT), or the Windows logo key () and keep it active until the other touches.

    For more information visit:

    To change StickyKeys options

    http://www.Microsoft.com/resources/documentation/Windows/XP/all/proddocs/en-us/access_stickykeys_settings.mspx?mfr=true

  • What format to use when you try to download videos on instagram or even try to send an e-mail

    What format to use when you try to download videos on instagram or even try to email them

    Hi Rashad,

    What format to use when you try to download videos on instagram or even try to email them

    This info is not easy to find on the site Instagram. Seems like Instagram want video to be uploaded from your phone. I guess that means he expects H.264 video. Please try it first and see if it works.

    Thank you

    Kevin

  • What is the function of server Orchestrator?

    What is the relationship between vcenter orchestrator server and the web client?

    and what is the function of server Orchestrator?

    The 'server' is the workflow engine. It holds all the configuration, workflow, resources, etc. It works / runs the necessary real when workflow and initiates communication with the 3 party systems, that it has been configured to Orchestrate. The 3rd party communication is facilitated through plug-ins such as vCenter, vRealize Automation, PowerShell, AD, Infoblox, F5, HTTP-REST, SOAP, etc...

    The 'Client' is your developer interface that allows to build and run the workflow manually. As noted by Christophe, the workflow you've built (or have been provided in the vast library of content that comes with the server) may be performed via the API REST Orchestrator.

    Consider your e-mail:

    Your 'Customer' e-mail address allows you to create/read/send emails to/from a mail SERVER.

    A mail server does the work of send/receive emails for your domain.

  • What is the function of message notification?

    Hello

    Can someone tell me what is the function of message notification? How to create that and which affect us?

    SKG

    Subsequent to the notification function is a PL/SQL procedure according to the same standards of API required for the activities of the function.

    The workflow engine executes the function of posterior to the notification in response to an update of status of the notification the notification is pronounced. For example, you can specify a function of subsequent to the notification which runs when the recipient of the notification sending or transmitting the notification. Subsequent to the notification function might run back logic to validate the legitimacy of the attacker or the transfer or execute logic on the other some evidence. Or you can specify a logic in the message notification function which must be performed when the notification is approved or rejected.

    You can specify the notification message to the activity of notification function by
    Click on the activity of notification-> properties
    You will see a text box with the label 'Function name', you specify the name of function notification post here.
    It should be of the form .

    Published by: sarojak on Sep 17, 2010 03:41

  • Somehow a storage tab expanded appear in c:\ drive properties in windows xp? What is the function remote storage tab?

    Somehow a storage tab expanded appear in c:\ drive properties in windows xp? What is the function remote storage tab?

    Hello

    1. Have the software installed on the computer before the show?
    2. Have you enabled all services or no changes to the computer before the show?
     
    For your reference:

    Remote storage is not available on Microsoft Windows XP, Windows Server 2003, Web Edition, or Windows Server 2003, Standard Edition.
    What is the removable storage?
  • UCS-FI-DL2 - what is the function of this card?

    Hello experts,

    The customer wants to know what is the function of the map have DL2-FI-UCS (UCS 6248 layer 2 daughter card). Can someone tell me?

    It's like a simple layer 2 switching function? Thank you very much!

    Hello Pei Meng,

    Model UCS FI 6248, repalceable UG with cluster, console, and management ports.

    http://www.Cisco.com/en/us/docs/unified_computing/UCS/HW/6200-install-guide/6200_HIG_chapter_01.html#ID51

    HTH

    Padma

  • What is the function of the IOS minimum set required for VPN site-to-site software?

    Hi guys,.

    I have a Cisco 1841 router to do a VPN site-to site. I would like to know what is the function of the IOS minimum set required for VPN site-to-site software?

    Thanks in advance.

    Hi Ja,

    Advanced security or more should do it. The version of the IOS, you can try later 12.4 T which is c1841-advsecurityk9 - mz.124 - 24.T5.bin, in which case you don't want to go to 15.1 still.

    I hope this helps.

    Raga

Maybe you are looking for

  • Find my friends pulled from the app store

    So yesterday, there was an update pushed to find my friends and Podcasts. So when I try to update it says "my friends is available on IOS." To get to find my friends, get on the App Store on your iOS device. "(it's on my iTunes on my mac). So to spea

  • Scan with an HP 8500 A909G Pro printer

    Hi all, since I installed Lion, I have been have problems scanning of multiple pages. I was on the site of HP and thouotht I downloaded the latest drivers but the problem persists.  Thanks for any help.  Dan

  • error 0x0000007B (0xf78a2524, 0xC0000034, 0x00000000, 0x00000000) after the installation of the new RAM

    I get the BSOD when booting with the STOP: 0x0000007B (0xf78a2524, 0xC0000034, 0x00000000, 0x00000000) message. The computer is a Dell Dimension 8400. I installed the new ram to find this message and we tried him swinging back the RAM on the former w

  • Photosmart 5510e black blue Scans

    I have a photosmart 5510e on a wireless network with windows 7 OS. Recently he changed the scan quality of the printer with all the colors that come out in a lighter version, IE: black sweeping like blue, blue as light blue etc etc. I used the print

  • ENVY 110 e-all-in-one printer can't find my cell phone to scan

    Whenever I try to scan to my laptop, it not only can not find. I have a HP laptop and it was working fine before, but now he can't seem to find it. I ran printing HP and doctor Scan and he said that checked everything. I opened the scan on the progra