Hello, I am receiving persistent error when trying to add a record to a table in my database.
I have a web app with a form that triggers a query to populate the new row with data.
When I try to do this by writing the query in GUI mode I get the error message 'you must satisfy the constraint "tablename" pkey'. Primary key column in table is just a simple id column that increments by one. My query omits it because I thought the database fills it in automatically.
When I tried to write the SQL query manually using INSERT INTO tablename (column1,column2...) values (value1,value2...) I get a different error message. 'duplicate key value violates unique constraint "tablename_pkey"' even though I did not specify a primary key value so it can not be duplicate.
On a different table, when attempting to do the same thing (insert new record) I get an error message that the query violates a not-null constraint on primary key. Again, I'm not sure what the issue is even though the error seems to be different.
Is this a bug or am I doing something wrong? I don't have much (any) prior coding experience and after over 5 hours haven't been able to figure this out so would really appreciate any help.