📌  相关文章
📜  mysql 以小时为单位获取日期差异 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:04:55.797000             🧑  作者: Mango

代码示例4
-- With implicit CAST
SELECT * FROM my_table 
    WHERE my_date BETWEEN '2021-06-01 01:12:00' AND '2021-06-30 23:59:59';
-- is EQUIVALENT to
SELECT * FROM my_table 
    WHERE my_date >= '2021-06-01 01:12:00' AND my_col <= '2021-06-30 23:59:59';