单表更新
最近更新时间: 2025-02-18 16:02:00
postgres=# update tbase set nickname ='Hello TDSQL PG' where id=1;
UPDATE 1
- null条件的表达方法。
postgres=# update tbase set nickname = 'Good TDSQL PG' where nickname is null;
UPDATE 1
postgres=# select * from tbase;
id | nickname
----+-------------
2 | TDSQL PG好
1 | Hello TDSQL PG
3 | Good TDSQL PG
(3 rows)