oracle 求兩個時間段相差分鐘數

場景應用: 兩個時間相差多少?時?分?秒? 字段A varchar2 類型 2018-02-26 07:05:00 在oracle 中,時間加減運算後的結果是以天爲單位的,若是想獲得秒,則乘以 86400(一天的秒數 24*60*60) 就行了 想獲得分 24*60web --天 select (to_date( t.A,'yyyy-mm-dd hh24:mi:ss')- to_date( t.B
相關文章
相關標籤/搜索