I am trying to update a value in my Postgres table:
CREATE TABLE restaurants
(
id BIGSERIAL NOT NULL,
name VARCHAR(50) NOT NULL,
location VARCHAR(50) NOT NULL,
price_range INT NOT NULL CHECK (price_range >= 1 AND price_range <=5)
);
Here is the update that wouldn't work:
UPDATE restaurants
SET location = ”los angeles”,
name = ‘tacos los guichos’,
price_range = 2
WHERE id = 27;
The terminal says:
ERROR: syntax error at or near "angeles”"
LINE 3: location=”los angeles”,
^
My table does not seem to like strings when updating, even though I am able to insert them. So I am not sure why? When I removed the name and location column, it updated fine.