Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

why can I insert date into Oracle database date column

Status
Not open for further replies.

omerdurdu

Programmer
Jul 21, 2001
72
0
0
TR
Oracle database I have a table and a field called Date and type is date. When I try to insert date in it it says invalid user.table column, table column or column specification; Here is the code:

insert into parkcode_xref(date)
values ('#CrateODBCTime(Now())#')

Thanks for help
 
It's been a while... but I believe this is correct;

The date type is not a string... so you shouldn't be including it in quotes in the INSERT.

ie -
Code:
insert into parkcode_xref(date)
values (#CreateODBCTime(Now())#)

Hope it helps,
-Carl
 
It's probably because you have "a field called Date"

i can't remember offhand how oracle lets you get around this

in microsoft access it would be square brackets, but try putting it in doublequotes, e.g.

insert into parkcode_xref("date")

better yet, redefine the column name


rudy
 
You definately have to redefine the columnname. There isn't a workaround for the date reserved word(s) in Oracle.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top