1π
β
In PostgreSQL double quotes ("
) are used to denoted delimited identifiers, not string literals. Single quotes ('
) are used for string literals, so you update with:
UPDATE django_site SET name = 'alt native' WHERE id=1;
You probably should also add a WHERE β¦
clause to prevent updating all records.
You should also use name
as column, not django_site.name
.
Source:stackexchange.com