View Full Version : Date arithmetic for Interactive SQL on the AS/400
K.Forsythe
09-01-2004, 06:52 AM
Try date + 1 year
Guest.Visitor
09-01-2004, 08:02 AM
Can anyone tell me how to do arithmetic with date fields using STRSQL. For example, I want to update a date field in a file for certain records. How would I add 1 year to the DATE01 field? Would it be something like: UPDATE MYLIB/FILEA SET DATE01 = DATE01 + (what goes here????) Thank You
ukpi1b
09-01-2004, 08:02 AM
Check http://www.mcpressonline.com/mc?printarticle@175.koVMfHb6dae.1@.6ae58825 posting. It has some examples
Powered by vBulletin® Version 4.1.5 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.