Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个订单表。该表中有一个名为edited_date 的列。我希望只打印edited_date>48 到72 小时的所有行。仅在该期间之间。我正在使用mysql。我该怎么做?
Try this:
Select * from orders where DATEDIFF(CURDATE(), edited_date) between 2 and 3