using the function in pipeline

Hello

I defined a VC_ARRAY_1 as
create or replace TYPE  "VC_ARRAY_1" as table of varchar2(4000)
and the work that the test shows below:
select * from table(VC_ARRAY_1('qqqq', pppp'))

COLUMN_VALUE
qqqq
pppp
But, when I use the function that
select * from table (vc_array_1(select personkey from tbl_persons))
I get an error ORA_00936 missing expression (the column personkey is a vrachar2 (4000)). What is the problem with the use of the second?

Thank you
Rose

Elle rose says:
What is the problem with the use of the second?

Everything. You need to throw query results in collection type:

select  *
  from  table(
              cast(
                   multiset(
                            select  personkey
                              from  tbl_persons
                           )
                   as vc_array_1
                  )
             )
/

SY.
P.S. and where is a function in pipeline in all this?

Tags: Database

Similar Questions

  • Using the function PLSQL return Record Type Index of Tables in ADF

    I have a PLSQL function, a return type. My ultimate goal is to take this binary integer index Table and print it on the screen...

    CREATE OR REPLACE PACKAGE my_pkg IS
     
    TYPE t_col IS RECORD(
     
    i NUMBER,
     
    n VARCHAR2(30));
     
    TYPE t_nested_table IS TABLE OF t_col;
     
      FUNCTION return_table RETURN t_nested_table ;
    END my_pkg;


    OPTION 1:

    1) has anyone got best practices to accept plsql RECORDS returned by a function?

    Here is an example.

    http://adfpractice-Fedor.blogspot.SG/2013/01/working-with-PLSQL-procedures-in-ADF-BC.html

    But it will be a lot of work... first of all accept the results in a loop... then store in a temporary storage can be a few VO or global temporary table and then display them on the page


    OPTION 2:

    Using the functions PIPLELINED and use in the select statement.  While I can use this select statement in the SQL query to create VO... and drag and drop the VO...

    CREATE OR REPLACE PACKAGE my_pkg IS
     
    TYPE t_col IS RECORD(
     
    i NUMBER,
     
    n VARCHAR2(30));
     
    TYPE t_nested_table IS TABLE OF t_col;
     
      FUNCTION return_table RETURN t_nested_table PIPELINED;
    END my_pkg;


    select * from table(my_pkg.return_table);


    Wow... I'm so smart! .. really possible?  who is the best/possible/recommended option?

    I'm sure that will be the question most read by many who wants to use PLSQL instead of JAVA to the treatment and CHOSEN to use only to display the output of the PLSQL functions or procedures.


    Thank you

    Rahul


    Dario

    Do you mean the scope of the defined Type pkg will be finished?

    I created guy outside the pkg as 'Create Type' if it works in this case?

    Yes, level objects schema (created with "create or replace type...") can be used in java and this can work.

    I think that then the scope of this TYPE will remain until the user session passes.

    Object definitions is not worn, but have their bodies.

    So, if you instantiate the data level object type schema in a plsql function, scope of this object is this function.

    Of course, if you instantiate the object as a variable package, then life of this object is equal to the lifetime of the package (which usually equals life of session db).

    Dario

  • I have an iMac 27' 2012 with macOS Sierra and Apple Watch with watch OS 3, I can use the function "Log?" in Apple Watch

    I have an iMac 27' 2012 with macOS Sierra and Apple Watch with watch OS 3, I can use the function "Log?" in Apple Watch

    Hi John 2078 Tito.

    I understand that you have updated your iMac and Apple Watch and now you're curious about unlock your iMac using your Apple Watch. I know that it is a nice feature to be able to quickly and safely unlock your computer, so I'm happy to help you.

    This feature is available on 2013 iMacs and later versions, which means that your iMac won't be compatible. You can see more info on this feature here:
    Unlock your Mac with Apple Watch - Apple Watch user's Guide

    Thank you for using communities Support from Apple. See you soon!

  • I have been using the functionality of Firefox in which I could have multiple sets of tabs open, but only see the game I was working with. I have updated and now the functionality is Gone

    I have been using the functionality of Firefox in which I could have multiple sets of tabs open, but only see the game I was working with. I have updated and now the feature disappeared. I had a small icon on the top right of my toolbar. I used it all the time to keep windows separated for financial, plans to travel items, news, etc.. Has it been removed from Firefox?

    Hello

    The feature of tab groups is always present. You can try with the button right of the + after the last tab and Customize. If the icon is hidden behind the other, or if it is available inside the mini window customize, you can put it back. If the problem persists, you can also try of reset toolbars and controls: and start to make changes and restart in Safe Mode screen.

  • Using the functionality of Panorama on the DSC - H55

    What is the best technique to use the functionality of panorama Cybershot DSC - H55, press and hold down the button while slowly following the arrow or press and release the button? Move from L to R very slowly or quickly?

    HI, you have limited play with the speed as you move the camera a little to get used to the speed. I know it sounds strange, but it takes a little getting used to for you to know how fast to move it to. If you move too slow or too fast, you will not receive either the scene or the camera will tell you to slow down. If you can't move the camera through any matter within the time limit, a grey zone occurs in the composite image. In this case, go faster the camera to record a complete panoramic image.

    To take the panorama photo, you can press the button all the way down and release, then move the camera in the direction of the arrow. The camera records for about 7 seconds.

  • Cannot use the functions F1-12 on my Satellite C55 - A - 19 K

    Hello

    Satellite C55 - A - 19 K have a keyboard drivers?
    I cannot use the functions F1-12 and can not get the wireless since it s on the keyboard...
    Any 1 can help please?

    This function is not controlled by the driver keyboard, but with utilities and tools specific to Toshiba.
    What operating system do you use?

  • I use Windows 10 and use the Canon SX20 IS. How to use the function of Photo stich?

    I use Windows 10 and use the Canon SX20 IS. How to use the function of Photo stich?

    Is it possible to get the procedure to use feature stich photo?

    Will be Zoombrowser EX for windows 10 wotk?

    If any expert can guide me... that will be great.

    Hi Sat17,

    Thank you for your inquiry.

    For Windows 8 and beyond, ZoomBrowser EX has been replaced by EX. ImageBrowser

    Your software you will need to updated for Windows 10.

    You can access the software for your camera by clicking here.  Once on our site, scroll down to "Drivers and downloads", then use the drop down menu to choose "8.1 Windows" or "Windows 8.1 (x 64)".»  Your camera software has not been updated for Windows 10, but for Windows 8.1 software will run on your computer.

    To update your software, click the [Select] button to the right, then click on "How to download and install" for installation instructions.

  • I have saved via a website magazine and am now unable to disconnect! It is an interactive Web site, and I am unable to use the functions, so want to close your session, as there is no button 'unsubscribe '.

    I have saved via a website magazine and am now unable to disconnect! It is an interactive Web site, and I am unable to use the functions, so want to close your session, as there is no button 'unsubscribe '. Thanks for any info provided.

    You should contact the website of the magazine for assistance.  This isn't a Windows, or a problem of Microsoft.

  • Color image is not displayed when we call using the function DAL (LOGO)

    Hi all

    To change a picture of the legacy of the new Image in our MRL, the legacy Image is used by a lot of Faps (sections).

    (1) if we create the new article with new Images, the process becomes complex, as we need to check all the triggers and forms associated with it.so, we plan to create a field (with the same position as picture) DAL with functions of LOGO use

    EX:

    If (#process = 1)

    LOGO ("Idea", Fieldx (), Fieldy ())

    on the other

    LOGO ("LegacyImage", Fieldx (), Fieldy ())

    End

    Return("")


    Problem: The new Image is colored but when printed (called using "DAL") that is the impression that 'Black and White')

    We tried to use 'Refresh() '.


    Kindly help me with solutions,


    Thanks in advance

    Try to use the function ChangeLogo DAL instead.

    Change a logo on a section that has the set of attributes "print in color.

    This preserve the parameter "Print in color" and the logo print in color.

    See Re: how to get the graph to print in color when it is added using script

  • Writing bug when you use the function to import .txt (Acrobat Pro DC)

    I'm trying to redact large sections of a document using the function import .txt to select phrases or expressions. It works great, except if there is - or '. In this case, Acrobat bad reads the text file, per the screenshot below. If I copy the sentence from the PDF file and add it in the same manual, it seems in good condition. If I paste the Clipboard even in a txt and then import the text, he result is bad reading and so cannot find the phrase in the document.

    Screen Shot 2016-04-17 at 9.42.45 PM.jpg

    It seems that the TXT file was done in Word and saved in Unicode format. and used quotation marks. Quotes in general are a big problem as three different characters are used for them and corresponding can be difficult; and 4 hyphen/as of the characters.

  • When you modify a form in the DC or Pro Player I can enter text etc., save, close, and return later to change it. However, once I use the function "Fill & Sign" and save the document, it locks the file and all other fields are not editable. Is there a

    Hi guys,.

    When you type information in a form in the DC or Pro Player I can enter text with fields of text etc and then save, close and return later to change the form. However once I use the function "Fill & Sign" to sign the document, and then save, it locks the file and all other fields become editable. Is there a way around this to remove this feature where it becomes locked and instead allows me to change the form after a signature is applied and saved. All the security properties of the form are on 'admitted', there is no restriction. Even though the document is locked all the properties remain still as 'authorized '.

    The signing is FINAL.  You cannot sign a PDF paper advance. Complete and save, do not sign.

  • How can I use the function 'compare' in Acrobat Reader ms?

    I have the free version of Acrobat Reader DC.

    Now, I want to use the function "understand" but I don't know how to buy that.

    Buy only the function? Or do I have to buy the entire update?

    Thank you very much!

    This is part of the Acrobat Pro product. It cannot be added to Acrobat Reader. It is not an upgrade to Acrobat Reader - attention to not buy the upgrade, you won't be able to run it.

  • CAN´t, use the function "save PDF-portfolio under Web site" it is grayed out on the file menu -

    I can´t use the function "save PDF-portfolio as a site" in the file menu - it is greyed out.

    I use Windows 10 House and Acrobat DC

    Not all portfolios can be saved as a site.

    It is possible with http://blogs.adobe.com/pdfdevjunkie/wp-content/themes/Adobe_PDFDevJunkie/download/Billboar dTemplate.pdf

  • When I use the function "cut", the line of results more sharpness compared to the original files. For example, {A: "file.psd"-> cultures 4x6inch, 300 dpi-> B: "cropped file.psd} then the results are as described as a first step. What s the problem.

    When I use the function "cut", the line of results more sharpness compared to the original files. For example, {A: "file.psd"-> cultures 4x6inch, 300 dpi-> B: "cropped file.psd} then the results are as described as a first step. What s the problem. (Photoshop CC, windows7)

    I'm a Retoucher of photpfile have used the CS2 version for many years, and fuction 'Harvest' is an important and frequent tree tools myself. The result of the broke lines drive me annoying cause my feeling touch Sofete are all blown away. Please help me.

    I think you're talking about using the crop tool? If you're cropping with a size and resolution that involves interpolation of the image, the crop tool will use your preference for the Interpolation of the Image. By default, bicubic is automatic, which can easily result in a sharp file. Change your preference (in general) to bicubic and you shouldn't see any sharpening.

    I hope it works for your situation.

  • using the function search is not finding the words I know are in my document. Why?

    using the function search is not finding the words I know are in my document. Why?

    The fact that you see a Word does not mean that it is 'real' text. You can select the word? If so, copy and paste in another application (such as Notepad). He always look the same? If the answer to each question is, you also cannot find it by using a search.

Maybe you are looking for

  • disk ports hard m9300t

    I have a raid1 symmetry on my pc of m9300t.  One of the drives has failed, the tool says it's the drive on port 0.  However, I can't find anything that identifies which disk is the one on port 0.  Looked through the troubleshooting guide, leveling gu

  • Disable the use of structure in a lead time library function node increases

    I found that if I use a stureture disable to disable one of the outputs of a library function node call, the run time will be greatly increased. Can someone explain this?

  • graphics card on dv6-7000

    is it possible to update the graphics card on a HP Pavilion dv6t-7000 Select Edition with windows 7?  im not really thinking the graphics card that came with it is also good I want (Intel HD Graphics),

  • complete the installation

    The game I try to childcare facility saying C:\windows\system32\physxloader.dll is not installed or missing try to reinstall I tried and it didn't work and kept trying.

  • UNDER WINDOWS 95 WITH WINDOWS7

    I'm playing the old games starwars [tie fighter & rebel assault] held on win95 can help you