Skip to content
Advertisement

PostgresSQL custom sequence

I have a problem with nextval function, I have a custom sequence in my DB called InternalCodes and when i want to make a insert like this:

PostgreSQL returns me the following error:

org.jkiss.dbeaver.model.sql.DBSQLException: SQL Error [42703]: ERROR: column does not exist «InternalCodes»

enter image description here

Advertisement

Answer

You need to use single quotes instead of double quotes:

In your case, since your sequence name contains upper case letters, you actually need to use both:

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement