D
db2guy
i am working on db2 and need a perl script to delete data from a
table. There is a column in that table X lets say Xdate. Now i want to
keep only 90 days of data and delete everything else. The Xdate is in
timestamp format so its creating problems for me. ex
2004-03-31-00.00.00 so when i do current timestamp - 90 days the
problem is coming with time part of timestamp.
Can anyone suggest me a way.
Also how can i put this values
db2 "select count(*) from tableX" into a variable say $DD...
any suggestion will be appriciated thanks...
table. There is a column in that table X lets say Xdate. Now i want to
keep only 90 days of data and delete everything else. The Xdate is in
timestamp format so its creating problems for me. ex
2004-03-31-00.00.00 so when i do current timestamp - 90 days the
problem is coming with time part of timestamp.
Can anyone suggest me a way.
Also how can i put this values
db2 "select count(*) from tableX" into a variable say $DD...
any suggestion will be appriciated thanks...