I need to update field named 'from' in postgres. But i can not to do it.
Select working such:
SELECT table_name.from FROM table_name WHERE id=1 But I can not do it with UPDATE:
production=# UPDATE table_name SET from='text' WHERE id=3482; ERROR: syntax error at or near "from" production=# update table_name set table_name.from='text' where id=3482; ERROR: column "table_name" of relation "table_name" does not exist LINE 1: update table_name set table_name.from=' Can you suggest a way to update a field 'from' in the table?
from(likeSELECT table_name."from" FROM table_name WHERE id=1)