I'm trying to do a simple insert into a postgres table, but am getting an error that the value I'm trying to insert is being interpreted as a column name
INSERT INTO "imageTagBusinessMainCategory"
(id, businessMainCategory)
VALUES
(DEFAULT, "auto dealer")
Where id is set up to be the primary key, and auto increment, and not null. Those are the boxes I ticked when I set up the table in phpPgAdmin.
I'm getting this error though:
ERROR: ERROR: column "auto dealer" does not exist
Query = INSERT
INTO "imageTagBusinessMainCategory"
(id, businessMainCategory)
VALUES
(DEFAULT,
"auto dealer")
I've put my table name in double quotes, as I've read here I should.
And used DEFAULT
to auto-increment the id as I've read here I should.
Any ideas? Thanks!
ERROR: ERROR: syntax error at or near "'imageTagBusinessMainCategory'" Position: 13
– 1252748