-2

I've got a column date, which has a specific format. dd/mm/yyyy (for ex 31/05/2018). How can i drop rows where date is less than today?

I'm using MySQL5 & PHP7.

EDIT I know it's a simple operation, but actually my date format is "weird", i tried doing

DELETE FROM table WHERE date < '26/06/2017', but it's actually deleting columns aged 2018.

icra
  • 460
  • 3
  • 14

1 Answers1

-2
DELETE FROM table_name WHERE date < NOW()
futureweb
  • 442
  • 4
  • 12