Select SQL 中的 SEQUENCE:未在预期位置找到 FROM 关键字

Select SEQUENCE in SQL: FROM keyword not found where expected

我在 SQL 中创建了一个序列:

CREATE SEQUENCE MYSEQ increment by 5 start with 10;

当我尝试 select 序列时: select sequence MYSEQ.nextval from DUAL;

我收到错误:ORA-00923:未在预期位置找到 FROM 关键字 00923.00000 - "FROM keyword not found where expected"

如有任何帮助,我们将不胜感激

您不需要 sequence 关键字:

select MYSEQ.nextval
from DUAL;