select for update postgres code example

Example 1: update value postgresql

UPDATE table
SET column1 = value1,
    column2 = value2 ,...
WHERE
	condition;

Example 2: update record in postgreps

UPDATE table_name
SET column1 = value1,
    column2 = value2,
    ...
WHERE condition;

Example 3: postgresql update command

UPDATE table_name

 SET column1 = value1, column2 = value2, ...

 WHERE condition;

Example 4: update database collation in postgresql

update pg_database set datcollate='POSIX.UTF-8', datctype='POSIX.UTF-8' where datname='databasename';

Tags:

Sql Example