Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

updating the year using informix sql 1

Status
Not open for further replies.

ejaggers

Programmer
Feb 26, 2005
148
US
update table set column[7,10] = "2009";

works if column is a string datatype, but how can i change only the year if column is datatype date, using informix SQL?
 
UPDATE table SET column=MDY(MONTH(column),DAY(column),2009);

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top