postgresql insert returning

Sometimes it is useful to obtain data from modified rows while they are being manipulated. The INSERT , UPDATE , and DEL...

postgresql insert returning

Sometimes it is useful to obtain data from modified rows while they are being manipulated. The INSERT , UPDATE , and DELETE commands all have an ... ,Sometimes it is useful to obtain data from modified rows while they are being manipulated. The INSERT , UPDATE , and DELETE commands all have an ...

相關軟體 PostgreSQL 資訊

PostgreSQL
PostgreSQL 是一個跨平台的對象關係型數據庫管理系統,自 1995 年首次發布以來,已經成長為國際知名的解決方案,可幫助管理員輕鬆創建,組織,管理和部署各種形狀和大小的項目數據庫。這當然包括對運行 SQL 查詢,觸發管理,屬性管理以及其他企業級數據庫管理系統當前正在使用的所有功能的全面控制。為使日常管理多個作業和項目組件的管理員更容易訪問,PostgreSQL 符合大多數 SQL 2008... PostgreSQL 軟體介紹

postgresql insert returning 相關參考資料
Can I use return value of INSERT...RETURNING in another INSERT ...

You can do so starting with Postgres 9.1: with rows as ( INSERT INTO Table1 (name) VALUES ('a_title') RETURNING id ) INSERT INTO Table2 ...

https://stackoverflow.com

PostgreSQL: Documentation: 10: 6.4. Returning Data From Modified ...

Sometimes it is useful to obtain data from modified rows while they are being manipulated. The INSERT , UPDATE , and DELETE commands all have an ...

https://www.postgresql.org

PostgreSQL: Documentation: 11: 6.4. Returning Data From Modified ...

Sometimes it is useful to obtain data from modified rows while they are being manipulated. The INSERT , UPDATE , and DELETE commands all have an ...

https://www.postgresql.org

PostgreSQL: Documentation: 8.3: INSERT

You must have INSERT privilege on a table in order to insert into it, and SELECT privilege on it to use RETURNING. If you use the query clause to insert rows from a query, you also need to have SELECT...

https://www.postgresql.org

PostgreSQL: Documentation: 9.1: INSERT

The optional RETURNING clause causes INSERT to compute and return value(s) based on each row actually inserted. This is primarily useful for obtaining ...

https://www.postgresql.org

PostgreSQL: Documentation: 9.3: Returning Data From Modified Rows

Returning Data From Modified Rows. Sometimes it is useful to obtain data from modified rows while they are being manipulated. The INSERT, UPDATE, and ...

https://www.postgresql.org

PostgreSQL: Documentation: 9.4: Returning Data From Modified Rows

A common shorthand is RETURNING *, which selects all columns of the target table in order. In an INSERT, the data available to RETURNING is the row as it was inserted. This is not so useful in trivial...

https://www.postgresql.org

PostgreSQL: Documentation: 9.5: INSERT

https://www.postgresql.org

PostgreSQL: Documentation: 9.5: Returning Data From Modified Rows

The INSERT, UPDATE, and DELETE commands all have an optional RETURNING clause that supports this. Use of RETURNING avoids ...

https://www.postgresql.org