ORA - 00933 confusion with inner join and “as”

前端 未结 2 1771
逝去的感伤
逝去的感伤 2020-12-04 04:13

I have this query of getting data from two tables using an inner join, but I get the error SQL command not properly ended with an asterix under \"a

相关标签:
2条回答
  • 2020-12-04 04:28

    You are not allowed to insert keyword as between table name and its alias.

    0 讨论(0)
  • 2020-12-04 04:38

    Just remove the AS keyword

    select 
       P.carrier_id, 
       O.order_id, 
       O.aircraft_id, 
       O.quantity
    from 
       orderline O
    inner join purchaseorder P
       on O.order_id = P.carrier_id;
    
    0 讨论(0)
提交回复
热议问题