Microsoft
Software
Hardware
Network
Question : DB2 update time
Hi,
I must be doing something silly, but cant seem to update my time columns to increase all times by say 5 hours.
i.e. current data row would be
05:00:00
13:00:00
06:00:00
After update should be
10:00:00
18:00:00
11:00:00
but my editor keeps giving me sql errors.
I've tried doing
columnname = columnname + 5
columnname = columnname + 5 hours
columnname = TIMESTAMPADD( 8, 5, columnname )
This should be easy to do, what am I missing.
I am using aquastudio btw.
Regards,
Dech
Answer : DB2 update time
...update my time columns
Because you say that you tried this:
columnname = columnname + 5 hours
...and because I'd like to
assume
that you were using an UPDATE statement, I have to ask if you have verified that columnname is a TIME data type rather than a basic character column that holds a time value?
Tom
Random Solutions
Can't login to Lacie d2
PDF Mail Merge with iTextSharp
Can't Import javax.tv.Xlet within Java ME project class
Save Publishign site as template in SharePoint 2010
jQuery Get TD values with only TR id
How can I set up a VPN link between a OpenVPN (opensource) router and a Cisco WRVS4400N v2?
Changing color of a shape
FTP not working on Windows Server 2008 IIS 7
fully uninstall Acrobat 8.2.2
Silverlight 4 Async_ExceptionOccurred