Hi Lowfatspread,
I am using version 8.1.
I did not understand your insert statement. Could you please explain a bit.
Present data -
db2=> select * from testdate
MYDATE
-------------
15/07/1980
23/12/2003
db2=>
In above scenario, I just want to store '07/80' and '12/03' in date format.
Thanks again
Sagar
Main Topics
Browse All Topics





by: LowfatspreadPosted on 2004-07-12 at 05:48:35ID: 11528618
which edition/version & OS for DB2?
you can try
it like this ...
Date('01.MM.YYYY') + 1 Month - 1 DAY
where you substitute in the MM and YYYY
and end up storing the end date for the Appropriate month... year combination.
e.g.
insert into yourtable
( your columns ,...)
Select your data,..., Date('01.MM.YYYY') + 1 Month - 1 DAY , ...
from sysibm.sysdummy1
hth