Hi All
I'm very new to SQLplus, so forgive me if I'm blundering around in the dark here, but I wanted to do a simple one-off update on some of the records on a date field, which for some reason have been uploaded wrongly and ended up 100 years out - all the year values are 1903 instead of 2003. However the SQL I'm using results in a 'ORA-01401: inserted value too large for column' error, which is confusing me - surely a date field is 8 bytes regardless? Here's the SQL I'm trying to run:
Any ideas what I'm doing wrong/how I can get round the problem? Is there any way in SQLplus to return the data-type of the column I'm reporting on, just to check? Many thanks in advance
Laters, Z
"42??? We're going to get lynched!
I'm very new to SQLplus, so forgive me if I'm blundering around in the dark here, but I wanted to do a simple one-off update on some of the records on a date field, which for some reason have been uploaded wrongly and ended up 100 years out - all the year values are 1903 instead of 2003. However the SQL I'm using results in a 'ORA-01401: inserted value too large for column' error, which is confusing me - surely a date field is 8 bytes regardless? Here's the SQL I'm trying to run:
Code:
update prevemp set end_d=add_months(to_date(end_d,'YYYYMMDD'),1200) where end_d NOT like ' %' and end_d<'19031231';
Laters, Z
"42??? We're going to get lynched!