Answers for "mysql select in date range"

SQL
8

mysql check date range

-- 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';
Posted by: Guest on May-04-2021
-1

mysql select date from datetime

WHERE DATE(datetime) = '2009-10-20'
Posted by: Guest on April-29-2020

Code answers related to "SQL"

Browse Popular Code Answers by Language