SQL 错误 [933] [42000]: ORA-00933: SQL 命令未正确结束

1、报错背景:使用DBeaver向oracle插入大量数据,数据如下:

INSERT  INTO Student(name,sex,age,address,birthday) VALUES('Nike','男','18','北京','2000-01-01')
,('Nike','男','18','北京','2000-01-01')
,('Nike','女','18','北京','2000-01-01')
,('Nike','女','18','北京','2000-01-01')
,('Nike','男','18','北京','2000-01-01')
,('Nike','女','18','北京','2000-01-01')
,('Nike','男','18','北京','2000-01-01')
,('Nike','女','18','北京','2000-01-01')
,('Nike','男','18','北京','2000-01-01')
,('Nike','女','18','北京','2000-01-01')
;
INSERT  INTO Student(name,sex,age,address,birthday) VALUES('Nike','男','18','北京','2000-01-01')
,('Nike','男','18','北京','2000-01-01')
,('Nike','女','18','北京','2000-01-01')
,('Nike','女','18','北京','2000-01-01')
,('Nike','男','18','北京','2000-01-01')
,('Nike','女','18','北京','2000-01-01')
,('Nike','男','18','北京','2000-01-01')
,('Nike','女','18','北京','2000-01-01')
,('Nike','男','18','北京','2000-01-01')
,('Nike','女','18','北京','2000-01-01')
;

2、点击  执行SQL脚本(Alt+X)  :出现如下内容:

SQL 错误 [933] [42000]: ORA-00933: SQL 命令未正确结束_第1张图片

3、解决改批量删除问题,修改sql代码如下:


INSERT ALL INTO Student(name,sex,age,address,birthday) VALUES('Nike','男','18','北京','2000-01-01')
INTO Student(name,sex,age,address,birthday) VALUES('Nike','男','18','北京','2000-01-01')
INTO Student(name,sex,age,address,birthday) VALUES('Nike','女','18','北京','2000-01-01')
INTO Student(name,sex,age,address,birthday) VALUES('Nike','女','18','北京','2000-01-01')
INTO Student(name,sex,age,address,birthday) VALUES('Nike','男','18','北京','2000-01-01')
INTO Student(name,sex,age,address,birthday) VALUES('Nike','女','18','北京','2000-01-01')
INTO Student(name,sex,age,address,birthday) VALUES('Nike','男','18','北京','2000-01-01')
INTO Student(name,sex,age,address,birthday) VALUES('Nike','女','18','北京','2000-01-01')
INTO Student(name,sex,age,address,birthday) VALUES('Nike','男','18','北京','2000-01-01')
INTO Student(name,sex,age,address,birthday) VALUES('Nike','女','18','北京','2000-01-01')
SELECT 1 FROM dual

4、再次执行SQL脚本(Alt+X),即可添加成功。

希望对大家有所帮助,前路漫漫,一起探究.........................

你可能感兴趣的:(数据库,sql,数据库)