I have a table in oracle 11g
which in turn has a sequence
CREATE TABLE "BANCO"."TEXTO"
("TEXTOID" NUMBER NOT NULL ENABLE,
"NOME" VARCHAR2(4000 BYTE) NOT NULL ENABLE,
"VALOR" VARCHAR2(4000 BYTE) NOT NULL ENABLE,
"DATACADASTRO" DATE NOT NULL ENABLE,
"DATAATUALIZACAO" DATE NOT NULL ENABLE,
CONSTRAINT "TEXTO_PK" PRIMARY KEY ("TEXTOID"))
CREATE SEQUENCE "BANCO"."TEXTO_SEQUENCE" MINVALUE 1 MAXVALUE 9999999999999999999999999999 INCREMENT BY 1 START WITH 41 CACHE 20 NOORDER NOCYCLE ;
And I have an insert script from our vendor:
INSERT INTO Texto
(nome,valor,datacadastro,dataatualizacao,textoid)
VALUES
('texto1','valor1',sysdate,sysdate,(SELECT MAX(textoid)+1 FROM texto));
If I add the items this way in a script, will I be breaking the sequence? Taking into account that the table does not have a trigger
to enter the value of the sequence in the record id!