Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9104427
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T01:51:58+00:00 2026-06-17T01:51:58+00:00

Been scratching my head for a while with what should be a simple Update

  • 0

Been scratching my head for a while with what should be a simple Update Statement using the Java Based Squirrel SQL Client, version 3.4.0 (Note: This works fine in TOAD for Oracle, but long term I am expected to use Squirrel.

The query is:

UPDATE txn_header
SET KNZ = ' ', "TIMESTAMP" = ' '
WHERE ORGU_CODE_CMPY = '001'
and ORGU_CODE = '0040'
and TILL_SHORT_DESC = '061' 
and KNZ = 'WT'
and TXHD_TXN_NR between 729167 and 730881;

My problem is, TIMESTAMP is an Oracle PL/SQL reserved word. Research shows me that reserved words in Oracle should be encased in Double Quotes “TIMESTAMP”. but this seems to execute the last successful query which ran.

I’ve also tried

'TIMESTAMP'
[TIMESTAMP] 
(TIMESTAMP = " ") 
("TIMESTAMP = " ") 

The blank space is intended

Last Successful query is:

SELECT knz, count(*) 
   from TXN_HEADER
group by knz

I’m confused to say the least and I’m no expert at Database Administration – Any help would be incredible.

Edit – Made 10/1/2013

I’ve also tried using back ticks on the TIMESTAMP column name

UPDATE txn_header
SET KNZ = ' ', TXN_HEADER.`TIMESTAMP` = ' ' 
WHERE ORGU_CODE_CMPY = '001' 
and ORGU_CODE = '0040'
and TILL_SHORT_DESC = '061' 
and KNZ = 'WT'
and TXHD_TXN_NR between '729167' and '729167'

I get the following error:

Error: ORA-00911: invalid character

SQLState:  42000
ErrorCode: 911
Position: 44

The GUI of Squirrel is pointing at the backticks which I’ve seen as the solution to reserved words for sometime..

The server I’m connected to is an Oracle 11 Server

Thank You,
David Birkin

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T01:51:59+00:00Added an answer on June 17, 2026 at 1:51 am

    With the following table def, the update works fine with v3.4:

    create table txn_header (
        knz varchar2(100),
        "TIMESTAMP" timestamp,
        ORGU_CODE_CMPY varchar2(100),
        ORGU_CODE varchar2(100),
        TILL_SHORT_DESC varchar2(100),
        TXHD_TXN_NR integer
    )
    

    Can you provide your table create statement?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been scratching my head for a while on this one. I dont
I've been scratching my head for a while trying to figure this out. I
I have been scratching my head on this for quite a while now. Guess
I'm really scratching my head on this one. I've been using SimpleDateFormat s with
Here's one I've been scratching my head over for a while now. Suppose you
I have been scratching my head on this for a while now but still
I've been scratching my head on this for a while. I have a script
I've been scratching my head at this problem all day and I simple just
I have been scratching my head on this one for a while, so I
I've been scratching my head on this one for a while now and am

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.