If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > how to retreive the corrupt data with a "date" type

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-16-03, 23:48
xuancc xuancc is offline
Registered User
 
Join Date: Jun 2003
Posts: 6
Unhappy how to retreive the corrupt data with a "date" type

Hello, all experts.

I got a very troublesome problem. I have a table as below,
table a
col1 serial,
col2 date
DBDATE=DMY4
select * from a;
1210: Date could not be converted to month/day/year format
Seems there are some records has invalid date in "col2".
col1 col2
1 01/10/2003
2 01/10/2003
3 ??
4 01/10/2003
5 03/10/2003
6 01/11/2003
7 ??
8 ??
9 ??
...
...
1000 ??
1001 ??
...

I want to update these error records with a valid date at the same time remaining the correct records,
update a set col2='10/10/2002' where col2<'01/01/1900'
but I still got this error,
1210: Date could not be converted to month/day/year format
how can I do?
In addition, why are these corrupt data populated? I never inserted any invalid date into the table, actually I think even I want to insert an invalid date, it will be rejected by informix, right?

I will be very appreciated if anyone can give me a hand. Thanks in advance
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On