update支持别名
最近更新时间: 2025-02-18 16:02:00
postgres=# create table student(f1 int,f2 int);
CREATE TABLE
postgres=# insert into student values(1,1);
INSERT 0 1
postgres=# update student st set st.f2=2 where f1=1;
UPDATE 1
postgres=# select * from student;
f1 | f2
----+----
1 | 2