CodePudding user response:
Select count (*) from the table where date_format (add time record, 'Y - m - % d % %) in the(
Select distinct date_format (add time record, 'Y - m - % d % %) as the date from the table order by date desc limit 5
)
CodePudding user response:
Select count (*) from the table where date_format (add time record, 'Y - m - % d % %) in the