Oracle不支持with子句吗
with max_number as (select max(orderedNumber) as numbers from mcd_orderItems)
select mcd_foodList.foodName from mcd_foodlist, mcd_orderItems
where mcd_orderItems.orderedNumber = max_number.numbers and mcd_orderItems.FOODNO=mcd_foodlist.foodNo;
确报错:
unknown command beginning "with max_n..." - rest of line ignored