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