我有一列[RESULT_DT_TM],其中包含日期和时间值。看起来像这样:
RESULT_DT_TM
2015-04-27 12:54:02
2015-04-27 13:34:07
我希望该列看起来像这样:
RESULT_DT_TM
12:54:02
13:34:07
答案 0 :(得分:0)
简单
SELECT CAST(RESULT_DT_TM AS TIME) RESULT_DT_TM
FROM YourTable
返回:
+--------------+
| RESULT_DT_TM |
+--------------+
| 12:54:02 |
| 13:34:07 |
+--------------+