? 思路是先將oracle中時間字段轉化成字段串,然后與字符串模糊查詢
如下:
select * from atm1_operatelog t where to_char(t.operatetime,'yyyy-MM-dd') like '2006-10-16'
同時反過來也是一樣可行的
select * from atm1_operatelog t where t.operatetime like to_date('2006-10-16','yyyy-MM-dd')
將字段串轉化為時間然后使用like關鍵字
posted on 2006-10-17 15:45
陳琪 閱讀(4903)
評論(8) 編輯 收藏