Why am I getting an error in this Select statement ?

Any reason why this SQL string does not work on Oracle ?
SELECT * From kestjori.vatnshaed_web WHERE TIEINS = '1' AND TIDTIM BETWEEN To_Date('01.01.2000') AND To_Date('27.10.2000');
TIEINS is of the datatype NUMBER(3)
TIDTIM is of the datatype DATE
I am getting this error :
SQLException: [ORACLE][ODBC Oracle Driver][Oracle OCI] ORA-00911: invalid character
With thanks in advance,
Oskar Jensson

i think there is one exact problem in sql and other is optional.
1. u write field
TIEINS is of the datatype NUMBER(3)
but in query in where part u write
where TIEINS = '1'
so problem is of data type.
second optional problem can be removed by given date format in to_Date() function.
like To_Date('27.10.2000','dd.mm.yyyy')
i hope it will help u
bye
<BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by Oskar Jensson ([email protected]):
Any reason why this SQL string does not work on Oracle ?
SELECT * From kestjori.vatnshaed_web WHERE TIEINS = '1' AND TIDTIM BETWEEN To_Date('01.01.2000') AND To_Date('27.10.2000');
TIEINS is of the datatype NUMBER(3)
TIDTIM is of the datatype DATE
I am getting this error :
SQLException: [ORACLE][ODBC Oracle Driver][Oracle OCI] ORA-00911: invalid character
With thanks in advance,
Oskar Jensson<HR></BLOCKQUOTE>
null

Similar Messages

  • Getting an error in this select

    Hi,
    i am getting an error on this select
    select add_months(to_date('31-MAR-'||'to_char(to_date('31-MAR-2011')','YYYY'))-12) from dual
    Kindly help !!!

    Your format-codes are wrong and sometimes missing.
    Please try this:
    select add_months(to_date('31-MAR-'||to_char(  to_date('31-MAR-2011','DD-MON-YYYY'),'YYYY'),'DD-MON-YYYY'),-12) from dual;I did correct it, but it is not nice code. Why do you use the same constant value (31-MAR) twice? The second is only for extracting the year. You could do the same with this:
    select add_months(to_date('31-MAR-2011','DD-MON-YYYY'),-12) from dual;Keep in mind: There is a dependency of the setting of NLS_DATE_LANGUAGE in this code. NLS_DATE_LANGUAGE should be english for you code.
    For example if NLS_DATE_LANGUAGE is GERMAN the code for march will be 'MRZ' instead of 'MAR'.
    The following code would be language independent:
    select add_months(to_date('31-03-2011','DD-MM-YYYY'),-12) from dual;Edited by: hm on 11.09.2011 22:51

  • Why am I getting an error stating this version of iTunes has not been correctly localized for this language. Please run the English version when I just bought a song yesterday and had no problems

    I have iTunes running on my Windows8 desktop for some while with no problems. Yesterday I purchased a song, deleted a free game app. and upgraded to the most current version of iTunes.  This morning I could not pull up iTunes, so I retored my iTunes to a setting two (2) days ago.  Now, as soon as I try to start iTunes I get a message stating: This version of iTunes has not been correctly localized for this language. Please run the Enclish version OK.  So I hit the OK button and nothing happens.  Please help.

    Hi there GloriaNM,
    You may want to try removing and reinstalling iTunes as an initial troubleshooting step. Take a look at the article below for more information.
    Removing and reinstalling iTunes and other software components for Windows Vista, Windows 7, or Windows 8
    http://support.apple.com/kb/ht1923
    -Griff W.

  • In iCal - I keep getting the error message " This calendar was created by Mail" and it will not accept any input; why..??

    In iCal - I keep getting the error message “ This calendar was created by Mail” and it will not accept any input; why..??

    use Disk Utility and Verify Permisions then fix and Verify Disk and fix, this should fix it.

  • I'm trying to update my iphone 3GS to the 4.3.4 version and I am getting the error message "This version of itunes (version 9.1.1) is the current version.  How do I update my PHONE and why is an itunes update being confused for my iphone?

    I'm trying to update my iphone 3GS to the 4.3.4 version and I am getting the error message "This version of itunes (version 9.1.1) is the current version.  How do I update my PHONE and why is an itunes update being confused for my iphone?

    You need iTunes 10.0 or greater to update your phone...iTunes isn't confused at all. If you're on a Mac, you'll need OS X 10.5.8 or greater to update iTunes to 10.0 or greater.

  • Why do I get an error message in safari 5.1 telling me to restart in 32 bit mode in order to "view the movie" when I first start safari on opening page?

    why do I get an error message when I start safari 5.1 telling me I need to open browser in 32 bit mode in order to "view movie" ? This occurs when I start safari on the opening page (the page with all the boxes for most viewed web sites). This had never occurred with safari up until the latest updates to safari & OSX [Version 5.1 (6534.50)] and OSX 10.6.8.
    also, I'm not trying to view a movie - this occurs for the page previews that load when safari opens.
    thanks.

    go here:
    http://get.adobe.com/shockwave/otherversions/
    choose "different version">full 64 bit and download - seems to have solved probem...let you know if it happens again

  • Why do I get "generic error" message when trying to upload a self-created, 1hr .wmv file?

    I went through the forums and made sure that any blocks or copywrites weren't triggered by the file, it's clean and can be opened using a media player and other video editing software like windows MovieMaker. I keep getting "The importer reported a generic error" message and have no idea how to proceed. Can someone please help?

    Re: Why do I get "generic error" message when trying to upload a self-created, 1hr .wmv  file?
    This ARTICLE starts with a checklist on setting up a computer to run PrE best, then goes into a series of links for tuning up one's computer and OS, and then links on troubleshooting.
    There is also a link on posting all necessary info, to help others help you.
    Without knowing much more about your system, it is impossible to say much beyond that WMV's are tough assests to work with, requiring a lot of CPU horsepower.
    Good luck,
    Hunt

  • Getting an error like this The import javax.servlet cannot be resolved

    HI
    i am getting an error like this "The import javax.servlet cannot be resolved".wht i ahve done in eclipse right click->open->servlet->packge name->servlet name->next->nexyt>finish.hereinterfaces is javax.servlet.Servlet.
    do i need add jar for it.can any one tell me why i got error like this.
    vijay

    Please don't doublepost. Answer is given here: http://forum.java.sun.com/thread.jspa?threadID=5220686

  • Why do I get the error message "iTunes Match could not download because disconnected from network?  I'm connected to the internet during that time with Safari so am I not connected to the network?

    Why do I get the error message "iTunes Match could not be updated because you were disconnected from the network during processing."  I'm on the internet during all of this.  What disconnect is the message referring to?  Itunes is frozen now.  I keep clicking OK but it just comes back with no action.

    Hello FredJay,
    Thank you for contacting Apple Support Communities.
    iTunes Match needs a network connection to work, either Wi-Fi, cellular or wired. See the following:
    Make sure you have an active Internet connection
    Be sure your computer or device has an active Internet connection by loading a webpage using Safari or another web browser.
    On an iOS device with cellular support, if you are not on a Wi-Fi network, try enabling 3G cellular data1 for iTunes Match.
    For iOS 6, tap Settings > iTunes & App Stores > Use Cellular Data > On
    For iOS 5.1.1 or earlier, tap Settings > iTunes & App Store > Use Cellular Data > On
    1Fees may be associated with downloading over cellular networks; contact your wireless carrier for details.
    From:
    iTunes Store: Troubleshooting iTunes Match
    http://support.apple.com/kb/TS4054
    Regards,
    Jeff D.

  • Why do I get an error 150.30 whenever I attempt to open Photoshop on a Mac

    Why do I get an error 150.30 whenever I attempt to open Photoshop on a Mac

    Here is the tech doc that should explain this in detail.
    Error "Licensing has stopped working" | Mac OS
    Gene

  • Why I always get the error(ORA-00600)?

    Why I always get the error(ORA-00600)?
    My database Oracle 9.2.0.1.0 I installed Oracle Jdeveloper 9i on my computer.
    OS:windows2000
    My program:
    Class.forName("oracle.jdbc.driver.OracleDriver");
    con =java.sql.DriverManager.getConnection("jdbc:oracle:thin:@server:1521:db","developer","12345");
    java.sql.Statement stmt=con.createStatement();
    java.sql.ResultSet rs=stmt.executeQuery("select task_title from task");
    while (rs.next()){              
         //getInformation
         String fjbh=rs.getString("task_title");
    If I use this in a common java program(like MyParser.java). It will work well:
    D:\JavaApp> java MyParser
    but If I put the code into a JSP file . It will not work.I tried several times.
    I find that the statment:
         java.sql.ResultSet rs=stmt.executeQuery("select task_title from task");
    will throw the exception.It seemd that I can connect to the database ,
    but can not execute some sql statment.
    If I execute this sql statment:
         select sysdate from dual ;
         or
         select task_ID from task ; --task_id is a column with the type NUMBER(10)
    it will work.
    but if I execute :
         select Task_Title from task where task_id=1; --Task_Title is a column with the type VARCHAR(50)
         or
         select t.task_text.getCLOBVal() task_Text from task t where task_ID=1;
                   --task_text is a column with the type XMLTYPE, I use this column save XMLFile.
    it will not work.
    the detail error information as follow:
    java.sql.SQLException: ORA-00600: internal error code, arguments: [ttcgcshnd-1], [0], [], []

    It is a database bug (an ORA-0600 almost always is). In this case it is bug# 1725012. You can see the details from MetaLink. There are some patches (by platform) available you should see which may apply to you.

  • Why am I getting an error mesage when I am trying to update , Why am I getting an error mesage when I am trying to update

    Why am I getting an error message everytime I try to update or sync ~ I tried rebooting & not helping ~ This Ipod nano touch is only a few months old ~ wth !

    EMaximus wrote:
    Why am I getting an error message everytime I try to update or sync ~ I tried rebooting & not helping ~ This Ipod nano touch is only a few months old ~ wth !
    No such model.  You have an iPod Nano (which generation?) or an iPod Touch.
    iPod Models

  • Why am I getting the error message disallowed key characters in Safari on my mac?

    Why am I getting the error message dissallowed key characters while browsing the web on my mac?

    As there have been no further responses to this thread, I've finally marked Google Chrome as my default browser on both computers.

  • Why do i get quicktime error -50 everytime i try to export a project?

    why do i get quicktime error -50 everytime i try to export a project?

    I had this -50 error when exporting my movie. I tried multiple things to fix that, when I discovered the solution.
    When you insert/add/overwrite a clip into the timeline, sometimes FCPX does not generate the vignettes associated to the video (only the audio waveforms are correctly displayed). You can read the clip successfully, apply effects and do everything with it in the timeline, but when exporting this corrupted clip, the -50 error will occur. The solution is then to remove this clip and add it again (it should not bug twice on the same clip!).
    So I do not know whether you are in the same situation, but I hope this could help.

  • HT5701 why do I get 3072 error code when trying to download 6.0.4

    why do i get 3072 error code when trying ot download 6.0.4

    Some details, please?
    Based on the version number, you seeking to upgrade Safari?
    What OS X version?
    How are you upgraded or downloading the software?   (Directly downloaded, or via Software Update?)
    Have you tried quitting all applications, and then performing the Software Update?   (Discussion per this thread — but that thread is for iTunes, and I'm guessing you're looking at Safari here?)  If that doesn't work, I'd keep everything quit, reboot, and try again.

Maybe you are looking for