oracle兩個時間相減,得到精確的天數(不四捨五入)去比較

 update apex_主訂單 a 
     SET a.flag = '已取消'
     where 
     a.ordertype='WX'
     and a.flag = '待調度'
     and round((to_char(sysdate - a.ordertime)))>2;
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章