2012年3月14日 星期三

DB2中的日期yyyy/m/d格式化為yyyymmdd

如原始日期為2012/3/1
欄位名稱為tempDate
只要用下面的方法
replace(char(tempDate, iso), '-', '')
就可得到
20120301

沒有留言: