My table
question_id | title | user_id |
+---------------+---------------------------------+----------------+
Its types are
Column | Type | Modifiers
---------------------------------------+-----------------------------+-----------------------------------------------------------------
question_id | integer | not null default nextval('questions_question_id_seq'::regclass)
title | character varying(256) |
user_id | integer |
I run
INSERT INTO questions VALUES (SERIAL, 'question title', 123);
I get an error about the use of SERIAL.
How can you add the question to the table automatically taking an unique question_id by PostgreSQL?