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 8890457
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T22:30:23+00:00 2026-06-14T22:30:23+00:00

I am trying to update a date in a SQL table. I am using

  • 0

I am trying to update a date in a SQL table. I am using Peoplesoft Oracle. When I run this query:

Select ASOFDATE from PASOFDATE;

I get 4/16/2012

I tried running this query

UPDATE PASOFDATE SET ASOFDATE = '11/21/2012';

but it is not working.

Does anyone know how I would change the date to the one desired?

  • 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-14T22:30:24+00:00Added an answer on June 14, 2026 at 10:30 pm

    This is based on the assumption that you’re getting an error about the date format, such as an invalid month value or non-numeric character when numeric expected.

    Dates stored in the database do not have formats. When you query the date your client is formatting the date for display, as 4/16/2011. Normally the same date format is used for selecting and updating dates, but in this case they appear to be different – so your client is apparently doing something more complicated that SQL*Plus, for example.

    When you try to update it it’s using a default date format model. Because of how it’s displayed you’re assuming that is MM/DD/YYYY, but it seems not to be. You could find out what it is, but it’s better not to rely on the default or any implicit format models at all.

    Whether that is the problem or not, you should always specify the date model:

    UPDATE PASOFDATE SET ASOFDATE = TO_DATE('11/21/2012', 'MM/DD/YYYY');
    

    Since you aren’t specifying a time component – all Oracle DATE columns include a time, even if it’s midnight – you could also use a date literal:

    UPDATE PASOFDATE SET ASOFDATE = DATE '2012-11-21';
    

    You should maybe check that the current value doesn’t include a time, though the column name suggests it doesn’t.

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

Sidebar

Related Questions

I am trying to update a #temp table from a linked server using a
I'm trying to run a query from C# to MySQL (version 5.5.27) using the
Trying to make insert or update sql using the prepared statements from php's pdo.
I am trying to update a table across non-linked SQL servers using: C# or
In SQL/Transact SQL, I am trying to update a temp table to take the
I am trying to update my table 1 with some field value from table
I have.... string qString = select e from table where id= :id and trunc(Date)
For getting current date i use this.. select extract(year from sysdate) from dual; For
i'm trying to make a TRIGGER in ORACLE using ORACLE SQL DEVELOPER, I would
I am trying to write an sql trigger that will update another table whenever

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.