No idea why I can't put string variables in the place where in

Hi guys,.

I can't get my head around why the pl/sql block below does not return the expected result, it looks like Oracle don't like in ("' Scott", "Steve", "John" ')
declare
  employees varchar2(255) := '''Scott'', ''Steve'', ''John''';
  cnt       number;
begin
  select count(*) into cnt from emp where ename in (employees);
end;
What is work around please, I don't have permission to create types in my environment, but I also tried to hard-code the list of employees in my sql. Can you please throw some lights.

Thank you very much.
Pete

Published by: lcpx on 25 Sep 2012 19:55

>
employees VARCHAR2 (255): = "'Scott", "Steve", "John" ';
>
You can't build a chain like that

>
Select count (*) in the cnt from emp where ename (employees);
>
You cannot make sql like this - you must use dynamic sql statements. EXECUTE IMMEDIATE or real dynamic sql.

It's the final blog of Tom Kyte on "Varying in the lists.
http://tkyte.blogspot.com/2006/06/varying-in-lists.html

It covers several different ways to do what you are trying to do.

Tags: Database

Similar Questions

  • Can not put an icon in a place where there is a space

    I have a few icons on my desktop, and at the bottom of the screen, there is room for an icon. But when I put a here and select 'Clean Up' it moves upward in another column. Why?

    ^ ^ ^ Enough space for the icon here...

    I think that it (the icon) would interfere with the dock if he would become wider. The icon would prohibit the wharf of the 'culture '. It wouldn't surprise me if Apple ensures that the dock can oscillate between the left edge of the right edge of your screen.

  • I am the administrator of the computer and forgot my password. I followed the tip and still can not access my account, I can't just remember or find the place where to get my account

    Please help I just took my old computer out of my 6 years ago storage unit. I forgot my password. or the administrator of the computer. I took the trick and I tried every way I can think of, but still cannot access it. What should I do or where do I go for the info access into something. It's my other computer that's how I got to ask this question.

    Hello

    This is information from Microsoft for when you forgot your XP password.

    "How to connect to your Windows XP-based computer if you forget your password or if your password expires"

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

    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

    Other information above, we can not help you more with this.

    Microsoft prohibits any help given in these Forums for you help bypass or "crack" passwords lost or forgotten.

    Here's information from Microsoft, explaining that the policy:

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-security/keeping-passwords-secure-Microsoft-policy-on/39f56ef0-5d68-41AD-9daa-6e6019c25d37

    See you soon

  • How can I "freeze" my office in the places where I want that they?

    Before you have to clean a virus off my laptop Dell Inspiron 1720, my office 'elements' were all willing how I need them to refer quickly to.

    Subsequently, at the present time, they do not remain in the positions I have place-upper left; top-right; in categories, etc.  They are ALL on the left side, from the top down completely mixed up!  It's so hard to find what I need to be able to continue my work, after turning on my laptop, yet once A Dell Inspiron 1720 and I have Windows Vista.

    Can you help me please?

    CynthieC

    Hello

    See if this helps you:

    "How to change the alignment view desktop icons, and sort them by order in Vista"

    http://www.Vistax64.com/tutorials/126728-desktop-icons-view-sort.html

    Right-click on an empty part of the desktop > view > uncheck the BOX Auto fix.

    I use that line up on the grid for the cleanliness of the icon positions

    You can uncheck Alig grid too; but they may overlap.

    See you soon.

  • why I can not put a wallpaper? I click on set as desktop and the desktop is always black?

    why I can not put a wallpaper?  I click on set as desktop and the desktop is always black?

    Also, if you have Windows 7, check out this Microsoft support article for other causes and troubleshooting ideas.

  • why we can not put windows 7 on our new computers?

    why we can not put windows 7 on our new computers?

    Jay

    You can "downgrade" to win 7 BUT dependent on the Lim, it may void your warranty and there is perhaps no drivers for your computer with windows 7.

    Putting aside the modern splash screen (which you can ignore at startup) win 7 and win 8 are very similar.  If you don't like the modern user interface, you don't need to use it.

    To work around the start right click the taskbar > properties > navigation >

  • Why I can not put a veriable in attributes of animation?

    Hello

    I have a simple question, why I can't put variables in animations?

    <? XML version = "1.0" encoding = "utf-8"? >
    < s:Application width = "100%" height = "100%".
    ' xmlns:fx = ' http://ns.Adobe.com/MXML/2009 "
    xmlns:s = "library://ns.adobe.com/flex/spark".
    xmlns:MX = "library://ns.adobe.com/flex/mx" >

    < fx:Declarations >
    < s:Parallel id = "MoveRect_1ToRight" >
    "< s:Move xTo ="
    {MoveXto}"target ="{Rect_1}"duration ="8000"/ >"
    < / s:Parallel >

    < / fx:Declarations >

    < fx:Script >
    <! [CDATA]

    public var MoveXto:Number =-(Rect_1.width-stage.width);

    []] >
    < / fx:Script >

    < s:Group id = "Rect_1" width = "3000" height = "800" red = "0" >
    < s:Rect width = '100 percent"height ="100% ">
    < s:fill >
    < s:LinearGradient >
    < s:GradientEntry color = "#e8db03" / >
    < s:GradientEntry color = "#153eec" / >
    < / s:LinearGradient >
    < / s:fill >
    < / s:Rect >
    < / s:Group >

    < s:Group id = "Rect_2" width = "80" high low "0" = "0" right = "0".
    rollOver = "MoveRect_1ToRight.play (); "rollOut ="MoveRect_1ToRight.pause (); ">
    < s:Rect width = '100 percent"height ="100% ">
    < s:fill > < s:SolidColor color = "#000000" alpha = "0.2" / > < / s:fill >
    < / s:Rect >
    < / s:Group >
    < / s:Application >

    Greetings

    zombiecook

    You need to calculate the value of MoveXto after the application is created, here, I use the creationComplete for example Manager (and I changed the stage for this), but you might also consider using the applicationComplete handler if you do not want a value non-zero stage.



    "xmlns:FX ="http://ns.adobe.com/mxml/2009"
    xmlns:s = "library://ns.adobe.com/flex/spark".
    xmlns:MX = "library://ns.adobe.com/flex/mx".
    creationComplete = "init ()" > "
       
       
           


               
           
       
       
       
            [Bindable] public var MoveXto:Number;

    private function init (): void {}
    MoveXto = - 1 * (Rect_1.width - this.width);
    }

    ]]>
       
       
       
           
               
                   
                       
                       
                   

               

           

       

       
       
    rollOver = "MoveRect_1ToRight.play (); "rollOut ="MoveRect_1ToRight.pause (); » >
           
               
           

       

  • I tried to tap three fingers on the trackpad to find the definition of a word in an article.  It did not work.  How can I put a definition of the word in an article published in El Capitan?

    I tried to tap three fingers on the trackpad to find the definition of a word in an article.  It did not work.  How can I put a definition of the word in an article published in El Capitan?  I googled this question and he said to three fingers on the trackpad, of the band which is what I tried without success.

    carolfromknoxville wrote:

    I tried to tap three fingers on the trackpad to find the definition of a word in an article.  It did not work.  How can I put a definition of the word in an article published in El Capitan?  I googled this question and he said to three fingers on the trackpad, of the band which is what I tried without success.

    Highlight the word, right-click on it and select "search... "with the white line that represents all that is the word.  It will pull up from the definition in the dictionary.

  • I often get frequent blue screens on internet sites. Blue screen too fast for me to record specific error message. How can I put an end to the blue screen to get the error message?

    frequent blue screens often to internet sites.  Blue screen too fast for me to record specific error message.  How can I put an end to the blue screen to get the error message?

    en blue screen too fast for me to record specific error message.  How can I put an end to the blue screen to get the error message?

    If your computer is restarted when the BSOD appears, then you must change the by default for what to do in case of system error. It is easy to do, but takes a lot of mouse clicks to get there:

    Start | Control Panel | System | Advanced system settings (need for credentials for the administrator to spend here |) Advanced | Startup and recovery / settings.

    On this screen, uncheck the box under system failure that says automatically restart. The next time the BSOD appears, your computer will not do anything else until you press the reset button, so you'll have all the time you need to read and copy the error codes. Paste here, verbatim, and someone should be able to point in the right direction.

    ``````~~~~`````

    In the control panel choose reports on problems and Solutions (problem of type in the START search box), go to historical problem, right-click your error and choose check for the Solution. You can also examine the details.

    In administrative tools, choose the reliability and performance monitor and click on MonitoringTools then the reliability monitor (type reliability in research on Start). This list is a chart of the software installs, uninstalls, updated Windows and crashes by date. See if your plant has started to happen after you installed or uninstalled something.

    It may be useful to eliminate equipment defects

    Type of memory in the search box of start and choose Memory diagnosis

    In a command prompt (type command in the start search box then right click and choose Run as administrator) type

    CHKDSK c: /r

    If you have more than one drive replace C: with the other drive letters.

    Search for corrupted files by typing at the command prompt

    sfc/scannow

    You can clean boot troubleshooting http://support.microsoft.com/kb/331796

  • Why I can not rename any folder to THE?

    Hello

    why I can not rename any folder to THE?

    I use windows vista sp2

    To THE is a name that is reserved for windows, but you can create it in the UNC format:

    Try this:

    MD \\.\D:\aux
    RD \\.\D:\aux

  • How can I put my name at the bottom of my outgoing mail?

    Original title: Hot Mail

    How can I put my name at the bottom of my outgoing mail without entering each time?

    Hi Lance,.

    Are you facing issue while using the account Hotmail on Mail app?

    You must change the options to add outgoing signature is automatically sends in the settings of the program by e-mail.

    If you use the Mail application in Windows 8, you can see the article to change the settings for Mail app to use email signatures.

    Settings that apply to all accounts

    If you try to edit while using Hotmail like webmail, you must change the parameters into account Hotmail itself.

    You can check the thread and check:

    How can I add an AutoSignature to a Hotmail address?

    You must post your query in the Forums Windows Live itself.

    Windows Essentials Forums

    Hope the helps of information. Let us know if you need help with Windows related issues. We will be happy to help you.

  • How can I put no one above the letters just like a magazine cover?

    How can I put no one above the letters just like a magazine cover?

    I think you want which is informally referred to as a "sandwiched"image. " Here's a tutorial:

    https://InDesignSecrets.com/image-sandwich-putting-image-front-text.php

  • I had a subscription to photoshop and aftereffects. Can I put these programs on the second computer or that will bring several times?

    I had a subscription to photoshop and aftereffects. Can I put these programs on the second computer or that will bring several times?

    Creative cloud products are not transferable. You need to download again.

    Please see:

    Download Adobe Creative cloud apps | Free trial of Adobe Creative Cloud

    https://helpx.Adobe.com/creative-cloud/help/download-install-app.html

    Concerning

    Megha Rawat

  • How can I put a shadow on the letters

    How can I put a shadow on the letters

    Nice day!

    Could you please post a screenshot with the Panel visible layers?

    If you are talking about a text layer:

    Layer > layer Style > drop shadow

    If the letters should cast a shadow on a background,

    Layer > layer Style > inner shadow

    If the shadow should be in letters.

    Kind regards

    Pfaffenbichler

  • How can I put a Logo in the registry browser?

    Hey guys, does anyone know, how can I put a Logo in the register of browser? For example, look at this picture below; I would like a Logo as the Logo of Facebook, but I don't know how I can do this. The blue mark is my site.

    Is this possible with Adobe Muse?

    Thank you.

    Logo_Browser.JPG

    Hope this helps

    David

Maybe you are looking for

  • ENVY 17-j020us windows 7 drivers

    Good afternoon I recently bought a HP Envy 17-j020us to one of my vendors, but we only run windows 7 in our office I am trying to load windows 7 on this computer and cannot find drivers available for it, no network cards do not work, neither is reall

  • Download speed problems

    recently upgraded to 30 MB with WiFi ISP and speedtest.net shows ok but cable running only at about 21MO. It is with Vista. In safe mode, it runs at 31 MB assume so must be a software problem. Have tried with Norton firewall off - no difference. Can

  • How to launch the sms application?

    Hi everyone, I'm moving my app for sms and mms native app I use the following code: Invoke.invokeApplication(Invoke.APP_TYPE_MESSAGES, new MessageArguments()); but he throws the messages app... is it possible to launch the sms app? Thanks for any hel

  • New mail Notification

    How can I disable new-mail notification in Windows Live Mail 2011?

  • Commissioning for lack of Exchange because of the latency in Multi Site domain controllers

    Hi allI use using the OIM 11 g R2 PS2 BP04 with AD-connector version (11.1.1.6.0 & AD 2010) and the Version of the Exchange Connector (11.1.1.6.0 & Exchange 2010) and its installed on RHEL 6.5. We have 20:00 domain controllers and each of them is in