mysql date greater than 30 days code example
Example 1: mysql date greater than 30 days
SELECT * FROM my_table WHERE created_at > DATE_SUB(NOW(), INTERVAL 1 DAY)
Example 2: select row from mysql where date more than 30 days
mysql> delete from DemoTable where UserMessageSentDate < now() - interval 30 DAY;
Query OK, 3 rows affected (0.11 sec)