Results 1 to 4 of 4

Thread: Working with Dates in Sql

  1. #1
    Join Date
    Feb 2006
    Location
    Nebraska
    Posts
    7

    Working with Dates in Sql

    I created a table (jftest) with three fields as follows:
    account char(10)
    ckey varchar(25)
    cmpdate date

    I can insert datat into the account and ckey fields no problem. But I can not inert data into the cmpdate field. What is the correct syntax?

    I also tried to Update the field with the following:
    Code:
    update jftest set cmpdate=to_date('4/19/2006', 'mm/dd/yyyy');
    but get an error as well.

    what is the correct syntax for updating date fields?

  2. #2
    Join Date
    Sep 2002
    Posts
    5,938
    Which rdbms do you use?

  3. #3
    Join Date
    Feb 2006
    Location
    Nebraska
    Posts
    7
    I was using the tutorial on this site.

  4. #4
    Join Date
    Dec 2004
    Posts
    502
    rmaio was asking you if you are using Microsoft SQL Server, Oracle, DB2, Microsoft Access, etc.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •