题目描述:sql语句查询在2025-10-15以后状态为购买成功的C++课程或者Java课程或者Python的订单,并且按照order_info的id升序排序。

select *
from order_info
where datediff(date,"2025-10-15")>0
    and status = "completed"
    and product_name in("C++","Java","Python")
order by id

DATEDIFF(d1,d2) 语句---计算日期 d1->d2 之间相隔的天数。