How to get a list for the IN operator in a variable

I have a procedure that receives for one of its variables (var1) IN a list of strings comma-delimited. I output the value of var1 in one file so I know that he receives the full as string...

"'700 calls numbers', ' 800 numbers calls, 900 number calls, ' Customer Service calls","Directory Assistance","emergency/911 calls","international calls","calls Standard,"voicemail ".

"When you manually type a request to aid 'IN ('700 calls numbers', ' 800 calls numbers... ("Standard phone calls", "Voicemail") "the query returns three rows.

When the procedure is a statement Select using 'IN (var1)' no row is returned. How can I make the list comma noted for the IN operator within a single variable?

This depends on your version.

http://tkyte.blogspot.com/2006/06/varying-in-lists.html

Describes some methods.

Tags: Database

Similar Questions

  • How to get a trial for the ADEP license?

    How to get a trial for the ADEP license?

    Hi wedone84 ,

    Please go through the link mentioned for trail downlaod: https://www.adobe.com/cfusion/tdrc/index.cfm?product=adep_experience_services&loc=en_us

    Kind regards

    Romit Sinha

  • How to get a list of the tables more fragmented in Oracle?

    Is there a SQL on how to get a list of the tables more fragmented in the Oracle DBMS?

    Update the statistics on the table and try this, you should see very fragmented tables upstairs with high wasted_space.

    select table_name,round((blocks*8),2) "size (kb)" ,
                                round((num_rows*avg_row_len/1024),2) "actual_data (kb)",
                                (round((blocks*8),2) - round((num_rows*avg_row_len/1024),2)) "wasted_space (kb)"
    from dba_tables
    where (round((blocks*8),2) > round((num_rows*avg_row_len/1024),2))
    order by 4 desc
    

    I changed the query a little because the ORDER BY will not work if we concat | ' Ko ' with the column because this makes the output a character column data.
    And added a WHERE condition to see that these tables where the total size is greater than the actual size of data.

    Published by: zahid79 on July 23, 2010 13:40

  • How to get a list of the virtual disk?

    Hello

    How can I get a list of the ramdisk with information such as the size, used, type free, ?

    ==================This is my code ========================================

    Object cmobj
    = cb.getServiceUtil (). GetDynamicProperty (hostmor, "configManager");

    ConfigMgr HostConfigManager = cmobj (HostConfigManager);

    ManagedObjectReference ssSystem = configMgr.storageSystem;

    StorageInfo HostStorageDeviceInfo = (HostStorageDeviceInfo) cb.getServiceUtil (). GetDynamicProperty (ssSystem,

    "storageDeviceInfo");

    ======================================================================

    I can get the information of sotrageInfo, but not what I need, I mean, I can't "size, used, free, type, etc." information.

    And I also tried the code below:

    dcmor = ecb.getServiceUtilV25 (). GetDecendentMoRefs (_sic.virtualDiskManager, "Datastore");

    But I get nothing

    Could someone help me?

    I think you are looking for information on data warehouses. You can try the following command PowerCLI:

    Get-Datastore |
    Select-Object -Property Name,CapacityMB,
    @{Name="UsedSpaceMB";Expression={$_.CapacityMB-$_.FreeSpaceMB}},
    FreeSpaceMB,Type
    

    You want to book an information on the disks in the virtual machine, and then you can use the following script:

    Get-VM |
    ForEach-Object {
      $VM = $_
      $VM.Guest.Disks |
      Add-Member -MemberType NoteProperty -Name VM -Value $VM.Name -PassThru |
      Select-Object -Property VM,Path,
        @{Name="CapacityGB";Expression={"{0:N1}" -f ($_.Capacity/1GB)}},
        @{Name="UsedSpaceGB";Expression={"{0:N1}" -f (($_.Capacity-$_.FreeSpace)/1GB)}},
        @{Name="FreeSpaceGB";Expression={"{0:N1}" -f ($_.FreeSpace/1GB)}}
    }
    

    Best regards, Robert

  • How to create a list for the tabs 2nd level

    Dear Experts

    I created a view
    CREATE OR REPLACE FORCE VIEW  "MY_VW_TABS" ("APPID", "PTTARGET", "PTTABNAME", "PTTABLABEL", "TABNAME", "TABLABEL", "TABPAGE") AS
      select pt.APPLICATION_ID APPID,pt.TAB_TARGET PTTARGET,pt.TAB_NAME PTTABNAME,pt.TAB_LABEL PTTABLABEL,t.TAB_NAME TABNAME,t.TAB_LABEL TABLABEL,t.TAB_PAGE TABPAGE
    from APEX_APPLICATION_PARENT_TABS pt,APEX_APPLICATION_TABS t
    where t.tab_set = pt.TAB_NAME
    and pt.APPLICATION_ID=t.APPLICATION_ID
    order by pt.TAB_NAME,t.TAB_NAME
    I need to create a dynamic list based on this view of the * 2nd level tabs * (of my model of two-level tabs page), to be used in a region bordered on page 0. However, I found that the code in the list should be as follows:
    select level, labelValue label, 
           [targetValue]            target, 
           [is_current]             is_current_list_entry,
           [imageValue]             image, 
           [imageAttributeValue]    image_attribute,
           [imageAltValue]          image_alt_attribute,
           [attribute1]             attribute1,
           [attribute2]             attribute2,
           [attribute3]             attribute3,
           [attribute4]             attribute4,
           [attribute5]             attribute5,
           [attribute6]             attribute6,
           [attribute7]             attribute7,
           [attribute8]             attribute8,
           [attribute9]             attribute9,
           [attribute10]            attribute10
    from ...
    where ...
    order by ...
    Now, I have two questions:
    (1) how to use the view above to be used in the code of dynamic list?
    (2) is a good way to create a list for the tabs 2nd level?

    Best regards
    Mahmoud

    Mahmoud

    Are you sure that you view is correct?

    >

     where t.tab_set = pt.TAB_NAME
     
    

    Should be

    where t.tab_set = pt.current_for_tabset
    

    Nicolette

  • How to get a list of the tasks planned for OEM in a time

    HI gurus,

    Our requirement is to discover the list of tasks scheduled for a given time period. The one you suggest how we can get the list of jobs to OEM.

    is it possible to find out the list of the planned work of the backend. one can part of query or way of knowing.

    Our OEM version is 12 c.

    Thank you

    Hello

    you could get all scheduled tasks from the Command Line Interface of Enterprise Manager 'emcli' with the command "emcli get_jobs-batch = 1' (State ID 1 is"Programmed")." But just a few scripts to filter the scheduled execution. The repository you can query the view "sysman." "" Mgmt$ job_execution_history ' for this Information.

    EXAMPLE (shows all tasks scheduled to run January 17, 2015):

    SELECT

    *

    Of

    Mgmt$ job_execution_history

    WHERE

    State = 'Regular' AND

    start_time > = TO_DATE('17-01-2015 00:00:00', 'dd-mm-yyyy hh24:mi:ss') AND

    start_time< -yyyy="" hh:mi:ss')="" to_date('18-01-2015="" 00:00:00',="" 'dd-mm-yyyy="">

    Kind regards

    Tom

  • How to get a list of the methods and functions to use in the Transformation

    I am developing a transformation to apply the schema of a table in the relational model according to its type of classification. I was able to do this, but I have a doubt, in other words, how get the name of the first additional classification type, listed in the dropdown list of "Selected" of the "additional part" of the section "Types of Classification" of the table "Properties".

    This is the code that I'm working on:

    tables = model.getTableSet () .toArray ();

    for (var t = 0; t < tables.length; t ++) {}

    table = table [t];

    rating = table.getAdditionalClassificationTypes () .toArray ();

    SchemaName = ";

    {if (rating. Length = 0)}

    SchemaName = table.getClassificationType ();

    } else {}

    for (var s = 0; s < classif.length; s + +) {}

    {if (rating [s]! = table.getClassificationType ())}

    SchemaName = rating [s];

    }

    }

    }

    table.setSchema (schemaname);

    }

    The problem lies on the fact that I am able to get the ID of the Type of ranking, but not it's name...

    I was wondering if there is some document that lists the methods, functions, and namespaces that I could use in Data Modeler?

    Thanks in advance

    Wolf Goebel

    Wolf Hello,

    You can find the description of the API in the following directory:

    \datamodeler\datamodeler\xmlmetadata\doc

    Best regards

    Joop

  • ADF: How to get all rowKeys for the table displayed in the page

    Hello

    I have table "COMPANY" where the 'COMPANY_ID' column is the primary key. I created a page simple jspx with:

    (1) a text entry to accept new IDs of company

    (2) Insert button.

    (3) af:table which displays all available in "SOCIETY" company ID

    When the user tries to enter a company code that is already present in the table I want to compare with the keys of the row of the table displayed below and if it's an already existing, I would like to send a friendly message for the user and put an end to the movement.

    So, how to extract all line keys to compare?

    Thanks in advance.

    Here's a way to check if you use the OperationBinding exception class:

    operationBinding.execute ();

    If (! operationBinding.getErrors () .isEmpty ()) {}

    There is an error

    List errors = operationBinding.getErrors ();

    Browse the list of hollow and see if there is an exception of your restrictions

    }

  • How to get a list of the rooms

    Hello

    How to get the list of rooms associated with an ALCCS (Adobe LiveCycle Collaboration Service) account . I tried to use the caller class and the requestRoomList() method, but I don't get that. If anyone can guide me...

    you need a bit of luck.


    http://www.Adobe.com/2006/mxml"layout ="absolute"xmlns:rtc ="AfcsNameSpace">
       
            Import mx.automation.AutomationManager;
    import com.adobe.rtc.events.AccountManagerEvent;
    import com.adobe.rtc.authentication.AbstractAuthenticator;
    import com.adobe.rtc.util.AccountManager;
               
    private var acmanger:AccountManager;

    private void onRoomListReceiveHandler(event:AccountManagerEvent):void
    {

    }

    private void onLoginSuccessHandler(event:AccountManagerEvent):void
    {
    acmanger.requestRoomList ();
    }

    private void onLoginFaultHandler(event:AccountManagerEvent):void
    {

    var roomList:Array = event.list in the table;

    }

    private void onSync(event:Event):void
    {

    }
    private function createRoom (): void {}
    acmanger = new AccountManager();
    acmanger.accountURL = "https://connectnow.acrobat.com/youraccount";
    acmanger.isAuthenticated = false;
    acmanger. Authenticator = myAccount;
    acmanger. Login());
    acmanger.addEventListener (AccountManagerEvent.ROOM_LIST_RECEIVE, onRoomListReceiveHandler);
    acmanger.addEventListener (AccountManagerEvent.LOGIN_SUCCESS, onLoginSuccessHandler);
    acmanger.addEventListener (AccountManagerEvent.ACCESS_ERROR, onAccessErrorHandler);
    }
    private void onAccessErrorHandler(event:Event):void {}
                   
    }
    private void onCreateRoomHandler(event:AccountManagerEvent):void {}
                   
    }
    ]]>
       
       
           
               
           

       

       
       

  • How to get a list of the names of a query table?

    Hello

    I use Oracle 10 g. I have about 100 SQL queries stored in a table. I would like to know if there is an easy way to retrieve the source tables in each query.
    For example:
    I have a query "SELECT * FROM Table1 t1 INNER JOIN Table2 t2 ON t1.col1 = t2.col1.
    This query, I would automatically get a list of tables:
    Table1:
    Table2

    Thanks in advance for your collaboration.

    Best regards
    Beroetz

    This query, I would automatically get a list of tables:

    Make a plan to explain on the query.

    The name of the object will be in the OBJECT_NAME column in your PLAN_TABLE.

    But the name of the object can be a table or an index so you'll need to join the user_objects this name to see if it is a table or index name.

    You will also need to take into account those moments where a query can be satisfied by only using the index. You can always get the name of the table glancing user_indexes.

  • How to get invoice_id ap for the invoice number

    Hello

    How to query the table of ap_invoices_v by the number of the invoice instead of invoice_id

    or, how to get the invoice_id based on invoice number and type

    appriciate your help

    Hello

    Use the where clause:

    where invoice_num = "invoice #

    and invoice_type = 'inv type.

    Kind regards

    Bashar

  • How to get a credit for the unused licenses now

    I have a license key for Acrobat XI 20. Sometimes we need updating machines which have been bogged down or upgrade us the hardware of a user and we need to be able to transfer this license the new OS or hardware. Is there a special process to return this license when she becomes unused, or is a simple uninstall clearly the number of licenses? In addition, if a machine with Acrobat XI under license is no longer boots, how would return this license?

    Serial number are good for the 2 activation, please try to install & check if it goes through. In case there are any questions, please let us know. Thank you

    Stéphane

  • How to get a list of the interface in a project

    Anyone know how I can retrieve the entire list of the project interface?
    Is there a way to retrieve in the ODI repository?
    Thank you

    Hello

    In the reference book there is a table called SNP_PROJECT only question him.

    This help you?

  • How to get a certificate for the use of bitlocker?

    I want to use bitlocker to encrypt my hard drive but need a certificate from me. can someone help me?

    Click Start, click Help, and then seek help of BitLocker. It's all explained here. You then follow this process:

    1. Practice with Bitlocker on a USB flash drive until you are completely comfortable with the concept.
    2. Back up your hard drive.
    3. Perform a few spot-checks on another machine to ensure you can read the data.
    4. Follow all the recommendations for the backup of your certificates
    5. Encrypt the drive. This can take several hours.
    If you skip steps 1. . 4 then you are likely to join the Group of people who wanted a crack encryption scheme to the test, only to find out later that it is very resistant to the crack, unless you have a valid certificate. BitLocker does not distinguish between you (the owner) and someone else. You have a certificate, or you don't.
  • How to get a list of the updates of Windows XP, released in 2010.

    How to obtain the list of all updates, patches, patches applied to Windows XP and released in 2010 with the possibility to download this update.

    Is there a Microsoft Web site or tool that allows me to get information like here http://www.softwarepatch.com/windows/windows-xp-security-updates-2010.html?

    No. ~ Robear Dyer (PA Bear) ~ MS MVP (that is to say, mail, security, Windows & Update Services) since 2002 ~ WARNING: MS MVPs represent or work for Microsoft

Maybe you are looking for