1

I created a a sequence in SQL:

CREATE SEQUENCE MYSEQ increment by 5 start with 10;

When I try to select the sequence: select sequence MYSEQ.nextval from DUAL;

I get the error: ORA-00923: FROM keyword not found where expected 00923. 00000 - "FROM keyword not found where expected"

Any help would be appreciated

Joao Pedro
  • 59
  • 1
  • 9

1 Answers1

1

You don't need the sequence keyword:

select MYSEQ.nextval
from DUAL;
Gordon Linoff
  • 1,242,037
  • 58
  • 646
  • 786