测试人测试魂 2021-07-14 12:23 采纳率: 25%
浏览 25

这串Oracle语句哪错了呀?

select * from sal_order
where sale_date between to_date('2021-07-12 00:00:00','yyyy_mm_dd hh24:mi:ss') and to_date('2021-07-14 23:00:00','yyyy_mm_dd hh24:mi:ss')
order by sale_date desc

img

  • 写回答

2条回答 默认 最新

  • CSDN专家-sinJack 2021-07-14 12:26
    关注

    pattern写的不对。改成下面的就可以了。
    如有帮助,请点击我回答右上角【采纳】按钮。
    select * from sal_order
    where sale_date between to_date('2021-07-12 00:00:00','yyyy-mm-dd hh24:mi:ss') and to_date('2021-07-14 23:00:00','yyyy-mm-dd hh24:mi:ss')
    order by sale_date desc

    评论

报告相同问题?

问题事件

  • 创建了问题 7月14日