Mysql
 sql >> Base de Dados >  >> RDS >> Mysql

Filtrar entre duas datas MYSQL

$result = DB::fetch("SELECT * FROM incentive_table WHERE inc_date BETWEEN '$inc_from' AND '$inc_to' AND inc_sales_id ='$userid'" ORDER BY inc_date ASC");