×
The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.
CREATE TABLE rob.target_file
(
id INTEGER NOT NULL,
field1 char(10),
field2 char(10)
);
insert into rob.target_file values(1, 'a', 'a');
insert into rob.target_file values(2, 'a', 'a');
insert into rob.target_file values(3, 'a', 'a');
CREATE OR REPLACE SEQUENCE rob.seq1
START WITH 1
INCREMENT BY 1;
-- "prepare" this statement
alter sequence rob.seq1 restart with ##;
-- replacing ## with the number you got with
select max(id) + 1 from rob.target_file
;
insert into rob.target_file
values(next value for rob.seq1, 'a', 'a');
Rob Berendt
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact
[javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.