Using {ts 'yyyy-mm-dd'} escape clause won't work

Hello,
I hope someone might answer this on this generic e-mail address
I found on the page.
I'm having problems with the {ts} esapce syntax in a SQL query.
Could anyone help me?
Here is a list of the following attempts with the {ts} call and
the Oracle Errors that I'm receiving.
"Thu Nov 18 15:12:56 CST 1999","SELECT * FROM CC_TRANSACTION
WHERE (MERCHANT_ID = 'merchant21') AND (TRANS_DATE_TIME >=
{ts 'yyyy/mm/dd'} )ORDER BY CC_TRANSACTION.TRANS_DATE_TIME ASC;"
"Thu Nov 18 15:12:56 CST 1999","SQLException
java.sql.SQLException: ORA-00911: invalid character
"Thu Nov 18 15:13:54 CST 1999","SELECT * FROM CC_TRANSACTION
WHERE (MERCHANT_ID = 'merchant21') AND (TRANS_DATE_TIME >=
{ts 'yyyy/mm/dd'}) ORDER BY CC_TRANSACTION.TRANS_DATE_TIME ASC;"
"Thu Nov 18 15:13:54 CST 1999","SQLException
java.sql.SQLException: ORA-00911: invalid character
"Thu Nov 18 15:15:04 CST 1999","SELECT * FROM CC_TRANSACTION
WHERE (MERCHANT_ID = 'merchant21') AND (TRANS_DATE_TIME
= '1999/12/05' {ts 'yyyy/mm/dd'}) ORDER BY CC_TRANSACTION.TRANS_DATE_TIME ASC;"
"Thu Nov 18 15:15:04 CST 1999","SQLException
java.sql.SQLException: ORA-00907: missing right parenthesis
"Thu Nov 18 15:16:16 CST 1999","SELECT * FROM CC_TRANSACTION
WHERE (MERCHANT_ID = 'merchant21') AND (TRANS_DATE_TIME
= '1999/12/05') {ts 'yyyy/mm/dd'} ORDER BY CC_TRANSACTION.TRANS_DATE_TIME ASC;"
"Thu Nov 18 15:16:16 CST 1999","SQLException
java.sql.SQLException: ORA-00933: SQL command not properly ended
"Thu Nov 18 15:18:58 CST 1999","SELECT * FROM CC_TRANSACTION
WHERE (MERCHANT_ID = 'merchant21') AND (TRANS_DATE_TIME >=
{ts '1999/12/05'}) ORDER BY CC_TRANSACTION.TRANS_DATE_TIME ASC;"
"Thu Nov 18 15:18:58 CST 1999","SQLException
java.sql.SQLException: ORA-00911: invalid character
"Thu Nov 18 15:19:47 CST 1999","SELECT * FROM CC_TRANSACTION
WHERE (MERCHANT_ID = 'merchant21') AND (TRANS_DATE_TIME
= '{ts '1999/12/05'}') ORDER BY CC_TRANSACTION.TRANS_DATE_TIME ASC;"
"Thu Nov 18 15:19:47 CST 1999","SQLException
java.sql.SQLException: ORA-00907: missing right parenthesis
"Thu Nov 18 15:20:43 CST 1999","SELECT * FROM CC_TRANSACTION
WHERE (MERCHANT_ID = 'merchant21') AND (TRANS_DATE_TIME
= '{ts '1999/12/05'}')) ORDER BY CC_TRANSACTION.TRANS_DATE_TIME ASC;"
"Thu Nov 18 15:20:43 CST 1999","SQLException
java.sql.SQLException: ORA-00907: missing right parenthesis
"Thu Nov 18 15:21:25 CST 1999","SELECT * FROM CC_TRANSACTION
WHERE (MERCHANT_ID = 'merchant21') AND (TRANS_DATE_TIME
= '{ts '1999/12/05'}')) ORDER BY CC_TRANSACTION.TRANS_DATE_TIME ASC;"
"Thu Nov 18 15:21:25 CST 1999","SQLException
java.sql.SQLException: ORA-00907: missing right parenthesis
I've tried everything under the "Sun"...!!!
I don't really want to hard code the oracle to_char function for
the app for other RDBMS databases.
Any Help would be extremely appreciated.
Thanks,
Nicholas Neuberger
E-mail: [email protected]
null

Nicholas Neuberger (guest) wrote:
: Hello,
: I hope someone might answer this on this generic e-mail
address
: I found on the page.
: I'm having problems with the {ts} esapce syntax in a SQL
query.
: Could anyone help me?
: Here is a list of the following attempts with the {ts} call
and
: the Oracle Errors that I'm receiving.
: "Thu Nov 18 15:12:56 CST 1999","SELECT * FROM CC_TRANSACTION
: WHERE (MERCHANT_ID = 'merchant21') AND (TRANS_DATE_TIME >=
: {ts 'yyyy/mm/dd'} )ORDER BY CC_TRANSACTION.TRANS_DATE_TIME
ASC;"
: "Thu Nov 18 15:12:56 CST 1999","SQLException
: java.sql.SQLException: ORA-00911: invalid character
: "Thu Nov 18 15:13:54 CST 1999","SELECT * FROM CC_TRANSACTION
: WHERE (MERCHANT_ID = 'merchant21') AND (TRANS_DATE_TIME >=
: {ts 'yyyy/mm/dd'}) ORDER BY CC_TRANSACTION.TRANS_DATE_TIME
ASC;"
: "Thu Nov 18 15:13:54 CST 1999","SQLException
: java.sql.SQLException: ORA-00911: invalid character
: "Thu Nov 18 15:15:04 CST 1999","SELECT * FROM CC_TRANSACTION
: WHERE (MERCHANT_ID = 'merchant21') AND (TRANS_DATE_TIME
: >= '1999/12/05' {ts 'yyyy/mm/dd'}) ORDER BY
: CC_TRANSACTION.TRANS_DATE_TIME ASC;"
: "Thu Nov 18 15:15:04 CST 1999","SQLException
: java.sql.SQLException: ORA-00907: missing right parenthesis
: "Thu Nov 18 15:16:16 CST 1999","SELECT * FROM CC_TRANSACTION
: WHERE (MERCHANT_ID = 'merchant21') AND (TRANS_DATE_TIME
: >= '1999/12/05') {ts 'yyyy/mm/dd'} ORDER BY
: CC_TRANSACTION.TRANS_DATE_TIME ASC;"
: "Thu Nov 18 15:16:16 CST 1999","SQLException
: java.sql.SQLException: ORA-00933: SQL command not properly
ended
: "Thu Nov 18 15:18:58 CST 1999","SELECT * FROM CC_TRANSACTION
: WHERE (MERCHANT_ID = 'merchant21') AND (TRANS_DATE_TIME >=
: {ts '1999/12/05'}) ORDER BY CC_TRANSACTION.TRANS_DATE_TIME
ASC;"
: "Thu Nov 18 15:18:58 CST 1999","SQLException
: java.sql.SQLException: ORA-00911: invalid character
: "Thu Nov 18 15:19:47 CST 1999","SELECT * FROM CC_TRANSACTION
: WHERE (MERCHANT_ID = 'merchant21') AND (TRANS_DATE_TIME
: >= '{ts '1999/12/05'}') ORDER BY
CC_TRANSACTION.TRANS_DATE_TIME
: ASC;"
: "Thu Nov 18 15:19:47 CST 1999","SQLException
: java.sql.SQLException: ORA-00907: missing right parenthesis
: "Thu Nov 18 15:20:43 CST 1999","SELECT * FROM CC_TRANSACTION
: WHERE (MERCHANT_ID = 'merchant21') AND (TRANS_DATE_TIME
: >= '{ts '1999/12/05'}')) ORDER BY
CC_TRANSACTION.TRANS_DATE_TIME
: ASC;"
: "Thu Nov 18 15:20:43 CST 1999","SQLException
: java.sql.SQLException: ORA-00907: missing right parenthesis
: "Thu Nov 18 15:21:25 CST 1999","SELECT * FROM CC_TRANSACTION
: WHERE (MERCHANT_ID = 'merchant21') AND (TRANS_DATE_TIME
: >= '{ts '1999/12/05'}')) ORDER BY
CC_TRANSACTION.TRANS_DATE_TIME
: ASC;"
: "Thu Nov 18 15:21:25 CST 1999","SQLException
: java.sql.SQLException: ORA-00907: missing right parenthesis
: I've tried everything under the "Sun"...!!!
: I don't really want to hard code the oracle to_char function
for
: the app for other RDBMS databases.
: Any Help would be extremely appreciated.
: Thanks,
: Nicholas Neuberger
: E-mail: [email protected]
Don't know it this helps, but I don't have any trouble reading
from the Oracle DB, its writing that's the problem. Here's what
I do to read: (using IBM Visual Age as dev tool & jsp webpages)
1. Register Oracle Driver.
2. Connection con = java.sql.DriverManager.getConnection
("jdbc:oracle:thin:@cs10k1f:1521:oracldb", "username",
"passwd");
3. Statement stmt = con.createStatement();
4. SQL statement: sqlstmt = " select create_dt from table where
condition;
5. rset = stmt.executeQuery(sqlstmt);
6. this.setCreate_date(rset.getDate("CREATE_DATE"));
setCreate_date(java.sql.Date var_name) where method sets a
private var declared to be java.sql.Date. Date comes back as
'yyyy-mm-dd'.
That's really all there is to it. Please notice that we're
using the Oracle "thin" driver.
Sorry if this is too much info, but I'm kind of new to all of
this, and I know what I'd like to see in reply. Let me know if
you get the db write solved.
Steve Hadfield
[email protected]
null

Similar Messages

  • I have an Airport Express and the pass code I used some time ago for my IPad won't work for my new IPhone 5S?

    I have an Airport Express and the pass code I used some time ago for my IPad won't work for my new IPhone 5S?

    If you are sure that you are entering the correct password, then this sounds like an iPhone issue, so your best bet will be to post in the iPhone Support Community so that the experts over there can help.
    Using iPhone
    The best that we can do here is suggest that you start with the iOS support document Troubleshooting Wi-Fi Networks and Connections.
    Resetting the iPhone took care of an issue like this with my wife's iPhone.
    http://support.apple.com/kb/TS1398

  • I had lion and am now using 10.6.8 and my iphoto won't work

    I had lion and am now using 10.6.8 and my iphoto won't work I am told that I need to use another version of iphoto

    Try this:  launch iPhoto with the Option key held down and create a new, test library.  Import some photos and check to see if the same problem persists. If you're able to create and run a new library successfully the culprit is your current library.
    In that case try the following on your current library:
    If you have the space available on your hard drive and don't aready have a backup copy of the library make a temporary, backup copy (select the library and type Commadn+D) and apply the two fixes below in order as needed:
    Fix #1
    Launch iPhoto with the Command+Option keys held down and rebuild the library.
    Select the options identified in the screenshot. 
    Fix #2
    Using iPhoto Library Manager  to Rebuild Your iPhoto Library
    Download iPhoto Library Manager and launch.
    Click on the Add Library button, navigate to your Home/Pictures folder and select your iPhoto Library folder.
    Now that the library is listed in the left hand pane of iPLM, click on your library and go to the File ➙ Rebuild Library menu option
    In the next  window name the new library and select the location you want it to be placed.
    Click on the Create button.
    Note: This creates a new library based on the LIbraryData.xml file in the library and will recover Events, Albums, keywords, titles and comments but not books, calendars or slideshows. The original library will be left untouched for further attempts at fixing the problem or in case the rebuilt library is not satisfactory.
    OT

  • Have used Illustrator CS5 for months. now it won't work- says "insufficient memory to run applic."

    Have used Illustrator CS5 for months. now suddenly it won't work- says "insufficient memory to run application". Lenovo w700, windows vista. Illustrator CS4 works, Photoshop CS5 works, everything else is working fine, in fact they all get loaded together.
    I found no solutions on the community board.
    Can I remove Ill. CS5 without damaging  CS4, and then reinstall CS5?  And if so, then how do I reinstall it?
    This is not fun.
    D Lund

    Nope, it opens a tiny little window, plus opening the floating tool menu
    This time I did not use the desktop short cut, but used what should be the exec icon under program files, expanded the window and it worked!
    Is this like taking my kid to the doctor-- I'm all better now daddy!
    So what gives? Richard Lund
    Research Associate,
    St. Joseph's University
    Carnegie Museum of Natural History
    co-PI, The Bear Gulch Project
    www.sju.edu/research/bear_gulch

  • What can I use on Firefox 5 now that FoxTab won't work?

    What can I use on Firefox 5 now that FoxTab won't work

    Well, first you could try the latest version. For some reason, it hasn't yet pushed onto the main page for FoxTab:
    https://addons.mozilla.org/en-US/firefox/addon/foxtab/versions/
    If that doesn't work well, which features do you want to replace?

  • HT1937 Have a AT&T iphone 4 and it will not let me login to the iPhone without a sims card and if you use a AT&T sims card it won't work

    Have a AT&T iphone 4 and it will not let me login to the iPhone without a sims card and if you use a AT&T sims card it won't work

    Define "won't work"...
    You can not activate an iPhone without a SIM. If the phone is carrier locked, you must have a valid Sim from the correct carrier.
    What EXACTLY is the message you're getting?

  • Haven't used iTunes in months...WiFi won't work on Iphone...HELP!

    Back in late March 2013, iTunes lost all of my data (apps, music, etc) after a routine update.  I tried to restore but the most recent backup in the iTunes folder was from 2012.  I basically gave up on iTunes altogether and started using wireless on both my iPhone & iPad to download new apps and updates.  This was working just fine, until a couple of months ago.
    Now, my iPhone 4S refuses to connect to WiFi anywhere.  I've tried to connect to multiple networks and it simply refuses to work.  Sometimes it's grayed out and other times it just searches forever and finds nothing.  My iPad connects to my home network with no trouble but it seems the iPhone simply doesn't recognize WiFi anymore!
    This is a BIG problem because my iPhone is stuck on IOS 6 and is unable to download a possible fix or larger app updates.  I've considered reconnecting to iTunes for that reason, but I'm afraid to lose all of my data (settings, contacts, apps, music, etc) if I do so.
    Before I go to an Apple specialist and fork out some money for a fix, I've come here for any tips and advice you guys could provide.
    Thanks in advance!

    This whole process is frustrating - why can't iTunes simply synchronize with my iPhone and rebuild my libary that way?
    Regardless I have a few more questions:
    1) Since iTunes on my PC is still linked to my account (even though library is empty) will all of my iTunes purchases and apps show back up after sync?
    2) Seeing as all my music is on my PC, should I simply painstakingly rebuild my Playlists AGAIN?  I really wish I didn't have to do this part in particular since, I manually added most of the individual song data.
    3) For future reference, what is the best way to back this up because clearly iTunes itself isn't capable of doing so.
    Thanks again guys.

  • Using Time Capsule with Windows 7. Won't work when modem connected directly to Time Capsule, must be connected through another router.

    Apple Time Capsule working with Windows 7 PC will not work when modem is connected directly to the Time Capsule.  Only when a Cisco Linksystem is connnected inbetween the modem and the Time Capsule.

    Sorry but it needs much more specific info than this..
    What modem? Is it cable or adsl or some other?? Is it pure modem or broadband router included?
    Cable has specific issues different to adsl.
    If you used to use the Cisco/linksys router.. and have not reset the cable modem it will not work. Turn off the cable modem.. it must be powered down.. if battery backup drop out the battery. Remove the coax cable.. get it off. Power down everything else in the network.
    Plug in the modem to the TC wan port.
    Power up the modem.. wait 2min
    Power up the TC.. wait 2min
    Power up the clients.
    If it has worked you will now be able to open the airport utility on the windows computer and see the TC has a public ip on the WAN port. If not redo the whole thing but leave the modem off.. 15min.. 1 hour.. 1 day.. ring the cable company and ask them to reset. Usually a few minutes is enough.
    If you have a modem with combined router.. then bridge the TC. Just google search it.
    For other combos.. tell us specifics..

  • When using a php contact form, the form won't work correctly.

    This is the code that I'm using in the html snippet. The form displays correctly, but when you click submit it trys to go to www.my web site.com//Order_Page/send_form_email. Notice the double / above? How do i make it not do two / but only one?
      First Name *
      Last Name *
      Email Address *
      Telephone Number
      Comments *

    The post method needs to reference the formmail.php script you uploaded to the server.
    Here's some examples and instructions for a simple form...
    http://www.iwebformusicians.com/iweb-snippets/form.html

  • Escape key won't work

    Sometimes the escape key on my MacBook Air doesn't work. Is there another way to back out of full screen applications?

    There is a diagonal double arrow in a blue rectangle located in the upper right corner of every full screen application. Hover your cursor in the upper right corner and click that double arrow.

  • Used google drive and now the file won't work

    I was in florida working on a windows PC in premiere pro cc i saved the file just like any other time and up loaded it to my google drive. When I got back to NY I downloaded said file and it won't open on my Mac i have premiere pro cc on both computers. How can I get this file to work, and is there a better way to send files like that i have a partner who live in FL and we will be sending files frequently. thanks for any help

    Take it in to the Apple store genius bar for a free evaluation.  Then your friend will be in  a position to make an informed decision.  We cannot give you any meaningful advice unless we can physically inspect the MBP.
    Ciao.

  • Have been using iChat with no problem, now it won't work.

    I am brand new to Mac...have always been a PC user so I don't have a clue where to start. Is there a list of troubleshooting steps I can take or a number to call? Help...I don't have a clue where to start.

    Hi,
    First port of Call http://www.ralphjohnsuk.dsl.pipex.com/
    FAQs listed here in Search
    8:17 PM Friday; June 1, 2007

  • Import using develop presets won't work!

    Hi all,
    I just upgraded from LR2 to LR3. A lot to hate in this new version. But I suppose one needs to adjust and no doubt I will, but there is one thing that is about to drive me up the wall. Something I haven't been able to fix, so here I am, looking for a bit of help.
    Here's the problem:
    Because I don't like Lightroom's Sharpening & Noise Reduction settings, I used a preset in LR2 that I applied automatically when importing my images into LR. Now, with Lightroom 3 this just won't work properly and I get exclamation marks, indicating those images are not in the 2010 develop environment. I realised I was using my old presets, created in LR2, so that made sense. So I first deleted all my old presets and to make sure, I also deleted my metadata preset that I also apply on import. I couldn't find a way to delete those presets from within Lightroom by the way. So I just went to the library and trashed them manually...
    Next:
    I open LR3. Now I have no user presets anymore, of any kind. I then import the first image of today's shoot. In the develop module I make sure that I'm working in the 2010 process environment. I set Sharpening and Noise Reduction to what I want them to be and make them a preset. Then I made another preset for my metadata. But after importing the rest of today's shoot with the presets I have just created, it will not accept the 2010 settings and I get the exclamation mark with every image. I have checked that the culprit is not the metadata file. If I use only that to import an image and leave the Develop Settings on None, all is well, and the image is regarded as being in the 2010 process state. If I then *manually* apply my earlier created Noise Reduction/Sharpening preset, it accepts it and all is well. But as soon as I try to apply that same preset again when importing my images, then, when I go to the develop module, the image is suddenly in the 2003 environment again and I get the exclamation marks. I have tried everything I can think of but I cannot escape it any longer: I have been defeated by Lightroom 3. What on earth am I doing wrong here? Anybody?

    Yes, I get the same thing with the sliders being greyed out. Funny thing is that the sliders *are* set exactly as in my preset and when I click 'yes update' to 2010 standards, the settings don't change but only the sliders become accessible. The thing is that I really don't want to be doing that with every import, even if you can do the whole batch at once. What I don't understand is that when I import with the preset turned off and apply it in Lightroom's Develop Module, it accepts it without a problem but that when I use the same preset on import, it won't work properly.
    Now what the poster in the other thread said was:
    "When I saved a new preset and selected to also save the process version,  a line in the preset was created:  ProcessVersion = "5.7".  When I cut  and paste that into all my other presets then the sliders were all  active when I used them."
    I have no idea what he is talking about or how one would do that. When I create a preset I simply click the + sign and in the pop up window select what I want, give it a name and that's it.
    Edit: Sorry, I apparently overlooked the Process Version box in the preset panel! Must have been a case of not seeing the forest for the trees. Problem solved. Thanks.

  • My Apple ID won't work

    My Apple ID won't work using app store

    mbryant1974 wrote:
    My Apple ID won't work...
    Contact iTunes Customer Service and request assistance
    Use this Link  >  Apple  Support  iTunes Store  Contact

  • My webcam won't work on my macbook!

    I rarely ever use it, but when I do it won't work at all. It's never worked in Ichat and now it won't work in a chatroom.
    I've had this problem ever since I got it. I never cared because It was never used but it's been bugging me.
    Can someone help?
    When I see the green light, I think it's working...it ends up not being the case. What's going on?

    Then how do I make my isight camera work? I just restored my computer from the apple store, they gave me a new hardrive and everything, and when I turned on my macbook, I updated it and I tried to open photobooth, it said that the camera was being used by another application or there was no camera plugged in. The green light that was supposed to be on when its in use wasn't on (and right now it isn't on either) and so i know there is some problem. Is there a setting I have to turn on? Because I've gone through system preferences and I can't find one. Thanks.

Maybe you are looking for

  • WAN/LAN IP DHCP Airport Extreme problems

    Hi! I just moved and changed internet provider. Set up my computers and the Airport Extreme (AEBS) and things are a bit different. I used to put an ethernet cable from the wall (ethernet broadband socket) into the WAN port on the AEBS and an ethernet

  • New E4200 firmware release?

    does anone know when the next release will be out?  I have sorted out all the kinks but still loose my media server once in a while and need to reboot the router to get it back.   I am using the latest release.   NOthing seems to trigger the loss of

  • OCA 10g for DBA

    Hi, I'm planning to take the exam OCA 10g for DBA. I'm wondering which books you would recommend me as a good reference. I think I will try 1Z0-007 and 1Z0-042 (as a mandatory one) If 1Z0-007 exam is a good choice? I bought a book: OCA/OCP: Introduct

  • Two level of tabs went missing

    All I had two level of tabs setup, and i managed to delete them oops... now i have all of my pages but i can't seem to link all of them to have two level of tabs, i have setup two parent tabs but when i try to add pages to them they only seem to show

  • Figure numbers

    I'm a little puzzled at the functionality of figure numbers. At present I am working on a sample chapter for a major textbook publisher to show how products of IBA can compare to 'dead tree & ink' books. The chapter I'm working on is NOT chapter 1, y