题目:

请你写出一个sql语句查询在2025-10-15以后状态为购买成功的C++课程或者

Java课程或者Python的订单,并且按照order_info的id升序排序

思路:

1.单表查询;2.where条件语句;3.order by进行排序

select * from order_info as oi where oi.date > '2025-10-15' and oi.product_name in ("C++", "java", "Python") and oi.status = "completed" order by id asc