Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> How do I insert records with date fields?

How do I insert records with date fields?

From: Ted Unnikumaran <unni_at_wam.umd.edu>
Date: Sun, 25 Apr 1999 03:31:53 -0400
Message-ID: <3722C4E9.60FCB9EE@wam.umd.edu>


I apologize if this question is too simple, but i've been having problems.

I have a table with a date field. in the ddl statement for the table I just created the field followed by date, i.e create table lot_info (starting_date date) <-- something like that.

And when I try to insert a record in to the table using the following command, it gives me an error
insert into lot_info values (9/9/1999); it gives me an error that says 'inconsistent datatypes' and points to the beginning of 1999.

when I try
insert into lot_info values ('9/9/1999'); it gives me an error that says 'not a valid month' and points to the month value.

i've been playing with this for a while now and i'm totally confused. so any suggestions would be greatly appreciated.

thanks
ted Received on Sun Apr 25 1999 - 02:31:53 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US