I would like to add some new values to ic_countries (plunet_english column), but I would also like to increment the id (landid). The table is set to unique id, but not auto increment.
Sadly my approach below provides an error around lastval()+1 as undefined. I have tried to add a function that increments starting from a hard coded value. Even that seems unobtainable.
INSERT INTO ic_countries (landid, plunet_english)
SELECT lastval()+1, name
FROM country
WHERE name NOT IN
(
SELECT plunet_english
FROM ic_countries
)