Working with Postgres 14 on Win 10. Running this simple query:
mydata=# SELECT * FROM contact_test;
cntct_id | fname | lname | email | street | unit | town | state | post_code
----------+-------+-------+-------+--------+------+------+-------+-----------
(0 rows)
mydata=# INSERT INTO contact_test (fname, lname, email) VALUES ('Robert', 'Johnson', 'rjohnsonn@gmail.com');
ERROR: malformed array literal: "Robert"
LINE 1: ...T INTO contact_test (fname, lname, email) VALUES ('Robert', ...
^
DETAIL: Array value must start with "{" or dimension information.
I looked up the syntax here:
The sample essentially looks the same as my statement:
INSERT INTO products (product_no, name, price) VALUES
(1, 'Cheese', 9.99);
What am I missing?