Chinaunix's Archiver
论坛
›
Informix
› 如何用sql把当前时间格式化为2007-09-28-15-08的形式
打靶归来
发表于 2007-09-28 15:10
如何用sql把当前时间格式化为2007-09-28-15-08的形式
问一下,如何用sql把当前时间格式化为2007-09-28-15-08的形式,精确到分钟...
xxyyy
发表于 2007-09-28 17:35
selectdistinct to_char(current,"%Y-%m-%d-%H-%M") from tablename;
页:
[1]
查看完整版本:
如何用sql把当前时间格式化为2007-09-28-15-08的形式