Answers for "select previous date in mysql"

SQL
1

mysql previous year

SELECT * FROM my_table
WHERE YEAR(my_date) = YEAR(DATE_SUB(CURDATE(), INTERVAL 1 YEAR));
Posted by: Guest on May-16-2021
0

MySQL get all previous date record

use < or > with CURDATE()
example
SELECT ID_RNDV FROM rndv WHERE DATE (Date_RNDV) < CURDATE()
Posted by: Guest on October-16-2021

Code answers related to "SQL"

Browse Popular Code Answers by Language