尝试删除但我不断收到错误消息“ 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';
答案 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';