Mysql
 sql >> Database >  >> RDS >> Mysql

Selezione delle voci per data ->=ORA(), MySQL

Stai cercando CURDATE() :

$db->query("SELECT * FROM events WHERE event_date >= CURDATE()");

Oppure:

$db->query("SELECT * FROM events WHERE event_date >= CURRENT_DATE()");