[英]Inserting a sequence of numbers SQL
I have a table 'Persons' which has a field 'ID' which is also a primary key. 我有一个表“ Persons”,其中的字段“ ID”也是主键。 I tried this and I keep getting 'ORA-00933: SQL command not properly ended'.
我尝试了此操作,但不断收到“ ORA-00933:SQL命令未正确结束”的信息。 I'm a beginner at this.
我是初学者。 I'm using apex.
我正在使用先端。
CREATE SEQUENCE idNmbrs INCREMENT BY 1 START WITH 100,
INSERT INTO Persons (ID) VALUES(idNmbrs.nextval);
CREATE SEQUENCE idNmbrs START WITH 100 INCREMENT BY 1;
INSERT INTO Persons (ID) VALUES(idNmbrs.nextval);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.