Why this statement doesn't work?

I have two table job and job_status,I use Page Process try to insert records to job_status, but the select query doesn't work, it display all the job in job table didn't filtered out the job matching the query, do someone know why? Any suggestion will be appreciated!
DECLARE
BEGIN
FOR x IN (
SELECT
JOB_SEQ,
PRIMARY
FROM JOB
WHERE ((RUN_DATES like '%'||:P6_WDAY||'%')
or (RUN_DATES like '%'||:P6_DD ||'%')
or (RUN_DATES like ''|| 0 ||'')))
LOOP
INSERT INTO JOB_STATUS(JOB_SEQ, OPERATOR,RUN_DATE) VALUES
(x.JOB_SEQ,x.PRIMARY,to_date(:P6_DATE,'YYYYMMDD'));
END LOOP;
END;

ops wrong typed
try
DECLARE
BEGIN
FOR x IN (
SELECT
JOB_SEQ,
PRIMARY
FROM JOB WHERE
((RUN_DATES like CHR(39)||'%'||:P6_WDAY||'%'||CHR(39))
or (RUN_DATES like CHR(39)||'%'||:P6_DD ||'%'||CHR(39))
or (RUN_DATES like ''|| 0 ||'')))
LOOP
INSERT INTO JOB_STATUS(JOB_SEQ, OPERATOR,RUN_DATE) VALUES
(x.JOB_SEQ,x.PRIMARY,to_date(:P6_DATE,'YYYYMMDD'));
END LOOP;
END;

Similar Messages

  • Why this example doesn't work ?

    for example below:
    html code:
    <applet code=LunarPhasesRB.class width="200" height="200">
        </applet>when i run it on IE , i get below result:
    failed to loading java program.
    why it doesn't work on IE ?
    who can help me ?
    thanks !

    thanks a lot!
    left of web browser appear below info:
    small application program LunarPhasesRB notinited
    what does it mean ?
    if i click "Click to activate and use this control".
    another err:
    failed to loading java program.
    who can help me ?

  • TS1398 I am prompted to provide password and I put it in. Join then it tells me I am unable to connect. Every other iPhone/iPad/laptop works fine. Not sure why this phone doesn't work.

    Just trying to access my wifi using my iphone

    Usually it's because you are not making internet connection via wifi.
    Look at iOS Troubleshooting Wi-Fi networks and connections  http://support.apple.com/kb/TS1398
    iPad: Issues connecting to Wi-Fi networks  http://support.apple.com/kb/ts3304
    Additional things to try.
    Try this first. Turn Off your iPad. Then turn Off (disconnect power cord) the wireless router & then back On. Now boot your iPad. Hopefully it will see the WiFi.
    Change the channel on your wireless router. Instructions at http://macintoshhowto.com/advanced/how-to-get-a-good-range-on-your-wireless-netw ork.html
    How to Quickly Fix iPad 3 Wi-Fi Reception Problems
    http://osxdaily.com/2012/03/21/fix-new-ipad-3-wi-fi-reception-problems/
    If none of the above suggestions work, look at this link.
    iPad Wi-Fi Problems: Comprehensive List of Fixes
    http://appletoolbox.com/2010/04/ipad-wi-fi-problems-comprehensive-list-of-fixes/
    Fix iPad Wifi Connection and Signal Issues  http://www.youtube.com/watch?v=uwWtIG5jUxE
     Cheers, Tom

  • Why this javascript doesn't work on IE 6

    Hi all
    I keep clicking on the button but nothing seems to happen. I'm using IE6 and I have also started tomcat . Pls advise.
    Here is my code
    <HTML>
         <HEAD>
              <TITLE> USING BUTTON </TITLE>
         </HEAD>
         <BODY>
              <%
                   if(request.getParameter("b")!=null){
              %>
              You clicked
              <%= request.getParameter("b")%>
              <%
              %>
              <FORM NAME="form1" METHOD="POST">
                   <INPUT TYPE="HIDDEN" NAME="b">
                   <INPUT TYPE="BUTTON" VALUE="BUTTON 1" onclick()="button1()">
                   <INPUT TYPE="BUTTON" VALUE="BUTTON 2" onclick()="button2()">
                   <INPUT TYPE="BUTTON" VALUE="BUTTON 3" onclick()="button3()">
              </FORM>
              <SCRIPT>
                   <!--
                        function button1()
                             document.form1.b.value="button 1"
                             form1.submit()
                        function button2()
                             document.form1.b.value="button 2"
                             form1.submit()
                        function button3()
                             document.form1.b.value="button 3"
                             form1.submit()
                   // -->
              </SCRIPT>
         </BODY>
    </HTML>

    Hi all
    I keep clicking on the button but nothing seems to
    happen. I'm using IE6 and I have also started tomcat
    . Pls advise.
    I'm just learning jsp's and servlets myself. The basic idea is that you start with an html page with a form on it. An html form tag has an action attribute where you list a jsp page. After the user fills out the form and clicks on the submit button, the names of the form fields along with their associated values are sent to the server along with a request for the jsp page. However, before the server sends the requested page back to the browser, any Java between the tags:
    <% .... %>
    is executed by Tomcat. The java code that executes can use the request object to get the values the user entered into the form.
    In your html, you don't even have an action attribute for the form tag. As a result, when you click on a button, which subsequently calls a javascript function that submits the form, nothing happens.

  • This iTunes doesn't work at all! Help.

    Hi. Why can't I download/buy Mp3's?
    I have newest iTunes 10. But when I go to "download" sections then still I can see "To download the item you just requested, you need to have iTunes" what is wrong.
    I have newest version. I try to buy Mp3's from 2 comptuers, from different internet browser but still nothing! Why this iTunes doesn't work?
    I am from Poland.

    Connect to the Computer you Usually Sync with and Follow the Steps Here...
    Recovery Mode
    http://support.apple.com/kb/HT1808

  • If statement doesn't work in JPanel

    Hi everybody.
    I'd like somebody tell me the reason why the "if" statement doesn't work in a Jpanel but works in a Japplet. I'm including the fragments of code that are relevant to the question.
    Thanks in advance.
    public class Applet_INVEN extends JApplet {
    jTabbedPane jTabbedPane1 = new JTabbedPane();
    Panel_1 p_1 = new Panel_1();
    JLabel jLabel1 = new JLabel();
    JTextField jTextField1 = new JTextField();
    JButton jButton1 = new JButton();
    void jButton1_actionPerformed(ActionEvent e) {
    if (jTextField1.getText() != "0") //------Executes when the condition is true
    jLabel1.setText("bingo");
    public class Panel_1 extends JPanel {//------INSIDE a JPANEL
    JTextField jTextField1 = new JTextField();
    JTextField jTextField2 = new JTextField();
    JTextField jTextField3 = new JTextField();
    JButton jButton1 = new JButton();
    void jButton1_actionPerformed(ActionEvent e) {
    jTextField2.setText(jTextField1.getText()); //----Ever executes, of course!
    if(jTextField1.getText() != "0") //----Never executes, even when
    jTextField3.setText("ojo"); //----the condition is true!

    You shouldn't use the != operator to test equality of Objects. Use Object.equals() instead.
    if (jTextField1.getText() != "0")
    should be
    if ( ! jTextField1.getText().equals("0"))
    or better:
    if ( ! "0".equals(jTextField1.getText())) <-- avoids null pointer exception.

  • How to use documentbeforesaved method? And why my code doesn't work in template files?

    Can someone help me with these two codes?
    ----Beginning of code 1-------------
    Private WithEvents App As Word.Application
    Private Sub Document_Open()
    Set App = Word.Application
    End Sub
    Private Sub App_DocumentBeforeSave(ByVal Doc As Document, SaveAsUI As Boolean, Cancel As Boolean)
    MsgBox("BeforeSave")
    End Sub
    --------------End of the code----------------
    Beginning of code 2--------------- Code 2 is from https://msdn.microsoft.com/en-us/library/office/ff838299(v=office.15).aspx
    Public WithEvents appWord as Word.Application 
    Private Sub appWord_DocumentBeforeSave _ 
     (ByVal Doc As Document, _ 
     SaveAsUI As Boolean, _ 
     Cancel As Boolean) 
     Dim intResponse As Integer 
    Private Sub App_DocumentBeforeSave(ByVal Doc As Document, SaveAsUI As Boolean, Cancel As Boolean)
    MsgBox("BeforeSave")
    End Sub
    In the first code, they have:
    Private Sub Document_Open()
    Set App = Word.Application
    End Sub
     I test these two codes in "This document" object, and I find out the first code works but the second code are not!
    Why second code doesn't work?
    Extra question: I am using microsoft 2013. I insert this code into a macro-enabled template. But when I am about to save my file I am expecting these code works. However, they didn't work!
    Thank you for solving these problem for me!

    Hello,
    Please note that the code snippet 2 in your post is different from the code snippet in the MSDN document. Also please read the comments of the MSDN code sample:
    This example prompts the user for a   yes or no response before saving any document.
    This code must be placed in a   class module, and an instance of the class must be correctly initialized to   see this example work; see
    Using Events with the Application Object for   directions on how to accomplish this.
    Public WithEvents appWord   as Word.Application
    Private Sub   appWord_DocumentBeforeSave _
     (ByVal Doc As Document, _
     SaveAsUI As Boolean, _
     Cancel As Boolean)
     Dim intResponse As Integer
     intResponse = MsgBox("Do you really   want to " _
     & "save the document?", _
     vbYesNo)
     If intResponse = vbNo Then Cancel = True
    End Sub
    So the problem in your code snippet 2 is that you didn't put it into a class module and initialize the class module. If you just put it into ThisDocument, you have to initialize the word application object.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Hi , please tell me why my ipod doesn't work ... when i conect it to my pc nothing happen .. and i can turn on my ipod .. why ? please help me

    hi , please tell me why my ipod doesn't work ... when i conect it to my pc nothing happen .. and i can turn on my ipod .. why ? please help me

    Go to
    http://bt.custhelp.com/app/answers/detail/a_id/47531
    and follow the instructions
    This was put up by BT several months ago as part of the advance notification that the Yahoo service through them was closing

  • HT4872 This solution doesn't work

    This solution doesn't work for me.
    I used my iPhone (4 - 16Go) on FR language, and with iOS 6.0.1 (Precision : Not Jailbraked !)
    I tried (for server)
    - google.com,
    - other with www.google.com,
    - other with m.google.com,
    for my login
    - my full Gmail adress,
    - my ID (so without @gmail.com at the end)
    Finally always the same answer : "Connection impossible avec SSL" (Impossible to connect with SSL).
    I tried to set up manually the SSL port to 443, doesn't work.
    I tried without SSL and iOS reply "La vérification du compte CardDAV a échoué" (CardDAV verification/check failed)
    I don't understand why it doesn't work
    Any solution please ?

    Have you tried these step-by-step instructions?
    Open the Settings application on your device.
    Select Mail, Contacts, Calendars.
    Select Add Account...
    Select Other
    Select Add CardDAV Account
    Fill out your account information in the following fields:
    Server: Enter "google.com"
    User Name: Enter your full Google Account or Google Apps email address.
    Password: Your Google Account or Google Apps password. (If you’ve enabled 2 Step verification, you’ll need to generate and enter an application specific password.)
    Description: Enter a description of the account (e.g. Personal Contacts).
    Select Next at the top of your screen.
    Make sure that the "Contacts" option is turned to ON.
    After you've completed setup, open the Contacts app on your device, and syncing will automatically begin.
    Depending on how many contacts you have it may take a while...

  • Why the style doesn't work?

    It's my very second test using Flex.
    quote:
    &lt;mx:Application ...&gt;
    &lt;mx:Style&gt;
    Text{
    backgroundColor:#FFFFFF;
    &lt;/mx:Style&gt;
    &lt;mx:HBox&gt;
    &lt;mx:Text /&gt;
    &lt;/mx:HBox&gt; ...
    &lt;/mx:Application&gt;
    This code doesn't work. I'd like to set my text control's
    background to white. Why is it wrong?
    Thanks.

    Because mx:Text does not have a backgroundColor
    style/property.
    Tracy

  • Realplayer "Download this Video" doesn't work on Firefox

    Realplayer "Download this Video" doesn't work on the latest vesrion of Firefox

    I upgraded Firefox from the latest to the latest. I have all the current flash plugins and reverted to RealPlayer 15 because I'd lost all my thumbnails in Windows explorer with RealPlayer 16.
    Funny how RealPlayer 15 works fine with Internet Explorer and not Firefox. Everything worked very well up until this current cycle of continuous upgrades with FF and the addons. Two upgrades ago (on everything) everything worked perfectly. Now, everything is questionable.
    Believe me, I have tried everything, every combination to fix this without something else going haywire and it can't be done at this point.
    If I want to download vidoes in RealPlayer I use Internet Explorer 8, for everything esle I try to use Firefox, but quite frankly it's slower than Internet Explorer.

  • Why the preloader doesn't work in IE 8 but works in FireFox?

    Why the preloader doesn't work in IE 8 but works in FireFox?
    Please see the attached files.  Thanks in advance.

    Why doesn't the preloader work in IE8?
    What's "virtual sandbox"?

  • I have Iphone 4G. I bought when I studied in Usa. Then I returned to  Uzbekistan this Iphone doesn't work. How I can use this phone? Can you help me?

    I have Iphone 4G. I bought when I studied in Usa. Then I returned to  Uzbekistan this Iphone doesn't work. How I can use this phone? Can you help me?

    shohjahon wrote:
    I have Iphone 4G.
    No, you do not.  It simply is not possible to have a device that does not exist.
    Most likely, you have an iPhone 4.  There is no 4G iPhone.
    shohjahon wrote:
    I bought when I studied in Usa. Then I returned to  Uzbekistan this Iphone doesn't work.
    Yes, it does work.  It is carrier locked to AT&T, just like all GSM iPhones sold in the US since their introduction.
    shohjahon wrote:
    How I can use this phone?
    You can use the phone as it is, but it will be very expensive with AT&T international roaming plans.
    There is no official way to unlock the phone for use with another carrier.
    Your options:
    Sell the device and purchase one intended for use in your country.
    Find unofficial method to unlock
    Use as an iPod Touch.
    No one here can provide you with assistance on getting you AT&T locked iPhone to work on another carrier.

  • Why this program don't work without the "stop"?

    can you tell me why this program don't work without "stop"?and why the "stop" of my program can not work?
    Attachments:
    N(%}QA2R@SOLAF_12~0SQ)A.jpg ‏67 KB

    Crossrulz, sometimes you can snip the URL of the image:
    http://forums.ni.com/ni/attachments/ni/170/823066/1/
    The stop button is checked once in every iteration of the while loop, which includes waiting for the for loop to complete its 9 iteration.
    The for loop takes 9 seconds to complete because of the time delay, therefore clicking the stop button can take upto 18 seconds, depending on whether the button has been read yet.
    Turn on the highlight execution )light bulb icon) to see what is happening in your code
    - Cheers, Ed

  • HT5312 This stap doesn't work! Can I do by other plan?

    This stap doesn't work! Can I do by other plan?
    thanks

    It will work if you have a rescue email address, if you don't have one then, as it says on that page, you will need to contact iTunes Support to get the questions reset.
    Contacting Apple about account security : http://support.apple.com/kb/HT5699
    When they've been reset you can then use the steps half-way down the page that you posted from to add a rescue email address for potential future use,

Maybe you are looking for