Oracle Sequences
发布时间:2020-12-31 01:37:22 所属栏目:站长百科 来源:网络整理
导读:Sequence: Define a Sequence to generate sequential numbers automatically ? example:可以在 update、select、insert语句中使用 SQL edWrote file afiedt.buf 1 create sequence test_seq 2 increment by 10 3 start with 100 4 maxvalue 200 5 minvalue
Sequence: Define a Sequence to generate sequential numbers automatically ? example:可以在 update、select、insert语句中使用
SQL> ed Wrote file afiedt.buf 1 create sequence test_seq 2 increment by 10 3 start with 100 4 maxvalue 200 5 minvalue 110 6 cycle 7* nocache SQL> / create sequence test_seq * ERROR at line 1: ORA-04006: START WITH cannot be less than MINVALUE SQL> ed Wrote file afiedt.buf 1 create sequence test_seq 2 increment by 10 3 start with 120 4 maxvalue 200 5 minvalue 110 6 cycle 7* nocache SQL> / Sequence created. SQL> select test_seq.nextval from dual; NEXTVAL ---------- 120 SQL> select test_seq.currval from dual CURRVAL ---------- 120 SQL> (编辑:达州站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- 谷歌全新教育项目将教授孩子如何对抗网络辱骂
- 我们到底能否阻止机器人和AI战胜人类自身吗?
- 【IBM人工智能文章】Watson Anywhere:未来将来?还是现实已
- 科技部 支持深圳深度参与战略性 前瞻性和基础性的重大科研布
- 苹果将App Store中的Stadium撤出,部分Google Stadia用户可
- Oracle大裁员:为什么中国区此次裁员中受打击最严重?
- 为OBIEE(Oracle Business Inteligence)添加jasig CAS身份验
- 网络直播的未来:稳固于垂直,正名于态度,得益于价值导向
- 如何将Oracle导出导入MySQL Workbench?
- 互联网大会,5G、数据中心黑科技、数字经济风头正劲