Oracle Create View无效

时间:2017-07-12 03:57:29

标签: oracle

下午好。我在Oracle做练习。据我所知,这个查询应该是正确的;我总是得到一个“声明没有正确结束错误”。我有创建视图,选择,FROM,连接都正确。为什么这个陈述不起作用?

CREATE VIEW RESERVATION_CUSTOMER AS
SELECT r.RESERVATION_ID, r.TRIP_ID, r.TRIP_DATE, c.CUSTOMER_NUM, c.LAST_NAME, c.FIRST_NAME, c.PHONE
FROM RESERVATION AS r
INNER JOIN CUSTOMER AS c ON c.CUSTOMER_NUM=r.CUSTOMER_NUM;

1 个答案:

答案 0 :(得分:-1)

试试吧

CREATE VIEW RESERVATION_CUSTOMER AS
SELECT r.RESERVATION_ID, r.TRIP_ID, r.TRIP_DATE, 
       c.CUSTOMER_NUM, c.LAST_NAME, c.FIRST_NAME, c.PHONE
FROM RESERVATION r, CUSTOMER c
WHERE r.CUSTOMER_NUM = c.CUSTOMER_NUM;

有关观看链接的更多信息,请参阅

enter link description here