📜  在 POSTGRESQL 代码示例中返回插入结果

📅  最后修改于: 2022-03-11 15:05:29.205000             🧑  作者: Mango

代码示例1
# to select specific columns
INSERT INTO users (firstname, lastname) VALUES ('Joe', 'Cool') RETURNING id, firstname;
# to return every column
INSERT INTO users (firstname, lastname) VALUES ('Joe', 'Cool') RETURNING *;