收到错误ORA-00933:SQL命令未正确结束

时间:2019-01-17 18:20:18

标签: sql oracle11g

尝试删除但我不断收到错误消息“ SQL命令未正确结束”

脚本

CREATE TABLE reservation_daily_elements
( 
resort         VARCHAR2(4000 BYTE), 
room VARCHAR2(200 BYTE), 
reservation_date  VARCHAR2(200 BYTE) 
); 


INSERT INTO reservation_daily_elements (resort, room, reservation_date) 
VALUES ('210', '112', '20-JAN-2019'); 

查询

delete room from reservation_daily_elements
where resort = '210'
and room = '112'
and reservation_date > '16-JAN-2019';

2 个答案:

答案 0 :(得分:1)

尝试如下所示,只是从查询中删除空间

delete from reservation_daily_elements
where resort = '210'
and room = '112'
and reservation_date > '16-JAN-2019';

答案 1 :(得分:0)

将查询更改为

delete from reservation_daily_elements
where resort = '210'
  and room = '112'
  and reservation_date > '16-JAN-2019';