I want to get the range of entries by their IDs created in a MYSQL table on a specific date in a PHP file. How can this be achieved? If required, assume there is a column in the database that lists the date when an entry is created.
是的,您可以执行以下查询:
SELECT MIN(id), MAX(id) FROM tablex WHERE entrydate = 'YYYY-MM-DD'
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.