如何从Oracle数据库获取24小时格式的日期时间?

问题描述:

是否还有其他方法可以24小时格式从oracle数据库中获取datetime字段? ->从tab_name中选择getxsddate(col_name)"将使您的日期时间格式为"2012-04-04T12:31:00" ...我想知道是否还有其他方法,因为我对这种格式不满意

Is there any other way to get datetime field from oracle database in 24hour format???like -> "select getxsddate(col_name) from tab_name" will get you datetime format as "2012-04-04T12:31:00"...I wanted to know if there are any other ways as i`m not satisfied with this format.

select to_char(col_name, 'yyyy-mm-dd hh24:mi:ss') from tab_name

您可以在此处