请问什么是oracle中序列(号)?

adam_you 2004-07-06 03:52:20
我执行了一个这样的语句
select stats$snapshot_id.nextval

from dual

报oracle-02289的错误,如何解决?
...全文
165 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
freddy2003 2004-07-06
  • 打赏
  • 举报
回复
a_seq是序列
nextval是下一个数值
adam_you 2004-07-06
  • 打赏
  • 举报
回复
再问一下,序列是什么概念,
a_seq.nextval
a_seq是序列
nextval是什么?
dinya2003 2004-07-06
  • 打赏
  • 举报
回复
序列.自动生成一系列的数字.用楼上的来测试.
freddy2003 2004-07-06
  • 打赏
  • 举报
回复
建一个序列
create sequence a_seq increment by 1 start with 100;


select a_seq.nextval from dual;
CodeMagic 2004-07-06
  • 打赏
  • 举报
回复
ORA-02289 sequence does not exist
Cause: The specified sequence does not exist, or the user does not have the
required privilege to perform this operation.
Action: Make sure the sequence name is correct, and that you have the right to
perform the desired operation on this sequence.

17,377

社区成员

发帖
与我相关
我的任务
社区描述
Oracle 基础和管理
社区管理员
  • 基础和管理社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧