How to handle, in which clause-separated values

Hi all

I have a function that returns multiple values separated by, and this fuction employs in where clause.

When this function returns multiple value I get the below error

[Error] Run (19:65): ORA-01722: invalid number

ex:

O.Object_ID, SELECT DISTINCT PKG_OBJECT_DETAIL. FNC_GET_OBJ_DISPLAY_NAME (o.Object_ID, o.Object_Type_ID) as Object_Name

OF TObject

WHERE object_type_id in (, PKG_ACTION_DETAIL. FN_GET_AR_OBJECT_TYPE_ID (1345))

the fuction multople return values is: PKG_ACTION_DETAIL. FN_GET_AR_OBJECT_TYPE_ID (1345)


How can I handle this?


Please suggest


Thank you

Hello

Without using dynamic SQL statements, you can do something like this:

OÙ «, » || PKG_ACTION_DETAIL. FN_GET_AR_OBJECT_TYPE_ID (1345) | ','

LIKE '%', | object_type_id | ',%'

It is not very efficient.

Tags: Database

Similar Questions

  • Model of how APEX handles data (values)?

    Reference {: identifier of the thread = 2486655}

    I am trying to get a model of how APEX handles data (values). There are several places (?) data (values) that may exist. Or so it seems. I'm trying to understand how these work - to put all the pieces together.

    Question:
    (A) where data can be?
    (1) in the database
    (2) for the session
    (3) rendering - and then displayed on the screen, if a value displayed - but not in the session
    (4) in perhaps (?) a few (?) memory work pool but different from the rendered page of values, I see on the screen?
    (5) other?

    Why I think that it's relevant?
    Question:
    (B) attended the session different from that made, then when the code runs, the values and values that (rendering or session) if he runs against?

    And maybe the answer is, "You don't understand what is happening." Yes, "exactly!" Where the question.

    Best wishes
    Howard

    Hello

    If you like to have 'default value' in session state, use the calculation.
    And as you've noticed, you need to before calculation of the item is made to get the same "default" session state and the screen.

    Kind regards
    Jari
    -----
    My Blog: http://dbswh.webhop.net/htmldb/f?p=BLOG:HOME:0
    Twitter: http://www.twitter.com/jariolai

  • How to handle the null value

    Hi all

    Can someone tell me how to handle null.

    I have a radio button, I need to capture the worth and inspiring I have a search criterion.

    If I select the radio button without problem. If I did not choose the option button it gives me the error.

    OAMessageRadioButtonBean var1 = (OAMessageRadioButtonBean) webBean.findChildRecursive ("job");
    If (var1! = null)
    {
    S1 = var1.getValue (pageContext) m:System.NET.SocketAddress.ToString ();
    }

    Please suggest.

    Kind regards

    Sangu

    S1 = (String) var1. GetValue (PageContext);

  • How to handle null values in the RTF models

    Hi - I have two groups in a report for different SQL and two formulas for each group, CF_ELE_CNT and CF_ELE_CNT1. In the model that I used the code to print a section below or not.

    <? If: number (CF_ELE_CNT + CF_ELE_CNT1) > 0? >

    The problem is when no data in the second group it was created not the tag XML for CF_ELE_CNT1, if CF_ELE_CNT has 13, it does not always print this partucular article. If I remove the CF_ELE_CNT1 in the State, it works fine. I was wondering how to handle this.

    Any help would be appreciated!

    Thank you
    RAV

    Hey Rav,.

    Check my profile, you will find.

    purpose of fusion {point} [AT] gmail [dOt] com

  • How to handle stale Stats script.

    Hello
    I use Release 10.2.0.1.0 Oracle. I have a scenario where I'm mediocre execution due to obsolete statistics plans, and how do I address the scenario. Here's the part of my main request which deviates the path of execution by the bad cardinality estimate.
     
          My column c1 of table tab1 holds javatimestamp values i.e. its NUMBER datatype which points to a date and time component only. And we gather stats each weekend on this table tab1.
          below is my query:
          
          select /*+gather_plan_statistics*/* from tab1          
          where c1 BETWEEN 1346300090668 AND 1346325539486    ;      
    
    Plan hash value: 3167980259
    
    --------------------------------------------------------------------------------------------------------------------------
    | Id  | Operation                   | Name                    | Starts | E-Rows | A-Rows |   A-Time   | Buffers | Reads  |
    --------------------------------------------------------------------------------------------------------------------------
    |   1 |  TABLE ACCESS BY INDEX ROWID| tab1                    |      1 |   1    |    167K|00:01:13.72 |     158K|  12390 |
    |*  2 |   INDEX RANGE SCAN          | IDX_N1                  |      1 |   1    |    167K|00:00:13.27 |   13880 |   1736 |
    --------------------------------------------------------------------------------------------------------------------------
          
         Above shows a big gap in actual and estimated cardinality estimation, and its due to the fact that the HIGH_VALUE (1346203206173 points to 8/29/2012 1:20:06 AM) in DBA_TAB_COLUMN for     column C1 is well below  the STARTRANGE(1346300090668 points to 8/30/2012 4:14:51 AM) and ENDRANGE(1346325539486 points to 8/30/2012 11:18:59 AM) of the BETWEEN clause. 
         
         So even gathering stats daily on the table wont help me as because, in morning again it will require updated maxvalue for the column C1 for estimating proper, So how to handle this situation?  Dont want to go with 'hint' , want to make the stats proper so that optimizer will automatically pick the right path.
    Published by: 930254 on August 30, 2012 04:41

    930254 wrote:
    Yes, I think that of the two options as

    1. setting the High_value (high_value + 7 days ahead) in weekend work which is used to gather statistics on that table.
    2. addition of indication to follow the optimal path.

    y at - it of the other alternatives for this scenario? If this isn't the case, which will be advised of the option above?

    Published by: 930254 on August 30, 2012 06:46

    If you consider the Doms tips as well, theres "a piece of work, you need to make sure that the optimizer always uses the index that it could not properly high_value far out of reach since the last gathering"

    What is the best way to do it? Although you seem reluctant to do it, for me, it's the index indicator. You know that the index, it's what you want to use, it's a small change. All the others, although not terrible difficult to implement, need additional jobs in

  • How to dynamically generate where clause in Linq

    Hi all


    Oracle DB: 11 gR 2
    Oracle Client: 11.2.0.3.0 (ODP.NET)
    Oracle Developer Tools for Visual Studio
    VS 2010 (C#)

    In a Windows Form, it must query the data based on the values in list dropdown listboxes, which the user selects.
    Let's say two combox, one Department and one for salary
    Department:
    -1 all the
    10 Department 1
    20 Department 2
    30 Department 3

    Salary:
    -1 all the
    1 < 20000
    2 20000 to 50000
    3 50000 to 100000
    4 > 100000


    Here is the c# code to query data:
    using (var myEDMctx = new HREntities())
    {
    var LINQrslt = from emp in myEDMctx.EMPLOYEES
    Select emp;

    }


    The default values for the two combox should be everything.
    How to write dynamic where clause for this LINQ?

    Thanks in advance!

    That's what I do.

    var query = from c in customers
    Select c;

    If (where1 > - 1).
    Query = query. Where(c.Where1 > where1);

    If (where2 > - 1).
    Query = query. Where(c.where2 == where2);

    to return the query;

    Published by: Invincible on July 4, 2012 09:25

    Published by: Invincible on July 4, 2012 09:27

  • How to handle the no_data_found exception

    Hi all

    How to treat no_data_found exception in the procedure. I created a procedure with the cursor, the cursor loop and passing the value to the select statement (in the where clause). It works fine if the select statement returns one other wise he throws exception no_data_found, but I want to continue execution after the statement select returns no ecor. Please let me know how to handle this.


    Thank you and best regards,
    Rajasekhar

    Hello
    Assuming it's the syntax of your procedure:

    create or replace procedure XXXXXX as
    .
    .
    
    .
    .
    
    for cur_rec in 
    loop
    .
    .
    .
    
    .
    .
    .
    begin
    
    exception
    when no_data_found then
    
    end;
    .
    .
    
    .
    .
    end loop;
    .
    .
    end procedure;
    
  • Network.protocol - handler.external.magnet type = boolean value = true

    Associate files of the magnet with firefox and qbittorrent

    With firefox 3.x the following entries about: config works great.
    Network.protocol - handler.app.magnet type is string value is/usr/bin/qbittorrent
    Network.protocol - handler.external.magnet type = boolean value = true
    Network.protocol - handler.warn - external .magnet type = value boolean = false

    With 4.0 they do not, and I see the problem is that 4.0 won't accept "Network.protocol - handler.external.magnet type = boolean", because it constantly changes its type to string.

    So, how do links magnet, transferred to qbittorrent via firefox 4.0?

    I found the solution. Previously, when I right click the topic: config page and select New to create the entry of Network.protocol - handler.app.magnet , firefox would immediately follow with a second window asking the access path to the torrent app and qbittorrent/usr/bin/qbittorrent already entered for me (who tells me that firefox has already known qbittorrent is the application to use). I click on OK, and firefox would be error when I clicked on a link magnet.

    This time, I deleted the default/usr/bin/qbittorrent, then pasted the same exact value into the box and click OK. And now it works. The only difference between the two methods; in the method that fails, the path/usr/bin/qbittorrent is highlighted when I click OK, in the method that works, the path is not highlighted.

  • Satellite Pro C660 - 21 d - how to change the shared memory graphic value?

    My dxdiag screen says I have almost 1700 MB of video memory, but when I try to use this memory on games these games can use 256 MB...

    I tried to change settings in the BIOS, but it does not have this setting, do not know what else could cause this problem?

    Hello

    This could be confusing, but this isn't a problem.
    Shared memory is controlled by the graphics driver and the driver affects the part of the main memory to the memory of the graphics card ONLY if its required by a running application.

    The Dxdiag shows you how much RAM could be shared and value of memory in the quizzes you shared memory which is used and who is in the game right now.

  • When I turn my library of music in format mp3. I have duplicates.how can I know which songs are mp3

    I have a mp3 player.i sansa player - tunes doesn't recognize Sansa, so I need to transfer my music in windows media player. to do this I need to convert all my music in mp3 format.when I do that, then I can burn all my music and import to wmp.question is that when I convert to format mp3, how will I know which songs are mp3?

    You can create a smart playlist which, for example, collecting files converted based on the date that they are added to the library. It depends on how you want to proceed. If you want to permanently convert, I have a script called ConvertFormat which range the originals after conversion. Alternatively, you can temporarily change your media to the converted files folder are stored in a folder of new media, then once the process is complete you may add these files to your WMP library, reset the media in iTunes folder and delete the new additions to iTunes library, thus separating the two libraries.

    TT2

  • How do I know which control raised the event?

    In my program, there are six buttons that do similar things, such as changing the value of a table according to which the button is clicked. I used an event structure to do this. However, rather than repeat my codes six times in six events (one for each click of a button), I would like a case of event that meets at one of the six program buttons. The question is, how do I know which button is clicked on the inside of the box (of the key can be either false or true, then the value of the play button won't help)?

    Configure the node event property to return the ref of the object that triggered the event. The referee can be used to check if she even control using various methods (name, equal to a Ref etc.).

    Ben

  • How to make a button than increse value

    HY guys, I want to make two buttons which when they press increse or decrese value that one Eurorest between them. The value I guess must be in a list. But I have no idea how to make a list of numbers and, more important still, how to add the feature to increase value to the buttons. I use Blackberry 5.0

    I know as tot creata a button for this:

    ButtonField increase is new ButtonField ('increase', ButtonField.CONSUME_CLICK);.
    Add (increase);

    Can someone help me? If you can give me an example of code, I'd really apreciate.

    If your list is to be static, you can set up a table, for example with an int]

    If you want the list to be dynamic (in size), you can use a vector. It is only necessary to objects, you should encapsulate your numbers in a class. For int which is whole.

    In your form (or), you can store the index of the currently selected number. When you click the button, you increase the index with + or - and load the new value of the vector/matrix.

  • How to handle the onTriggered many ActionItem created dynamically

    Hi, I created the ActionItem dynamically using (loop)

    because data is from webservice

    How to handle the onTrigerred?

    If my code is like this:

    for (int i = 0; i)< alist.count();="">

    {

    My page page * = iRoot-->findChild ("SpecificObject");
    ActionItem * action = ActionItem::create () .title (aList [i] .name);

    bool res = QObject::connect (action, SIGNAL (triggered ()), this, SLOT (handleAction (())); what I'm confused because I don't know what action is triggered
    Q_ASSERT (res);
    Q_UNUSED (res);

    my page-> addAction (action, ActionBarPlacement:efault);

    }

    MyClass::handleAction() Sub

    {

    aFunction(); This parameter of function required of aList, said user.user aList [i]

    }

    Do I need to create handleAction() as well as added actionItem SLOT

    But I don't know how much action added because it is dynamic server

    Thank you

    There are a few options:

    Create a single location and connect all the signals. You can then call sender() into the slot to retrieve the object that sent the signal and go from there. You can also use a QSignalMap that maps each signal to a value and send this value to a single location. You can also use QSignalMap::sender() to get the sender object.

    I used the QSignalMap to do something similar for handling created dynamically successfully drop-down lists.

  • Inactive Contacts - how you handle the?

    We currently have XXX, XXX (there is no way I'm telling you, in fact) of contacts in Eloqua, which is not just whatever be done in a VERY long time. We have recently acquired another company who does not use Eloqua and working on their integration in our system. Now I'm sure that like Eloqua me just buy more space, I work on a project to clean up the deadbeats and leave room for shiny new customers. The program that we run has three points of contact, and if a customer engages in any of the steps they got out the program and will be left in the system. In the last step we let them know that if we do not hear back from them within 10 days, we will assume that they are super busy and we will remove them from our database. Also, we are ignoring those who joined in the last 12 months, because they can always be interested in reading some of our materials and have not gotten yet around him.

    This seems to be an Amir of a program and will surely cause our stats boost then because we send is more people that never open anything.

    How you handle these kinds of people? Do you agree with our approach?

    Absolutely!  It is a perfect process.  In my life earlier as someone who was directly in the marketing of opps, we did this process manually about every 3 months.  Automating this process with a campaign and send to the PB to automatically remove contact looks a perfect nurture automated.

    You can even include the verbiage in the last email, if they "do not" provide this mail they will be removed from the system.

  • HOW can I identify which instance is associated with what listener

    Hi all
    I have created a DB instance. Suppose that named 'B '. but there is already another this DB instance. Named 'A '.
    Then, I created a listener instance DB 'B '.

    Now, my what, is that HOW can I identify which instance is associated with what listener.

    (2) if I create listener can also created service. If I stopped that service and then I can fire the query or Login again, WHAT will be the expected result.
    I tried to ask people of my answer. but not convinced.
    Please help me for this.
    Thanks in advance

    856376 wrote:
    Hi all
    I have created a DB instance. Suppose that named 'B '. but there is already another this DB instance. Named 'A '.
    Then, I created a listener instance DB 'B '.

    Now, my what, is that HOW can I identify which instance is associated with what listener.

    A listener is able and sufficient to deal with all the instances running on the computer. You are supposed never to create a listener instance. So in your case, the other instance B would be also recorded with the already present litener as well as the existing instance.

    (2) if I create listener can also created service. If I stopped that service and then I can fire the query or Login again, WHAT will be the expected result.

    Have you tried looking in this area and see what would be the expected result?

    Services are a means through which handles things. And when the service would cease, it means that this particular thing also will not work. Now, do you understand what the listener is actually used for? It is intended to listen for incoming connection requests. So if you turned it OFF, you cannot send to your db.

    I tried to ask people of my answer. but not convinced.

    Before asking people, please read the documentation that covers all these things in a large part. Check it out at http://tahiti.oracle.com.

    HTH
    Aman...

Maybe you are looking for