Search Postgresql Archives

Re: Multi-Table Insert/Update Strategy - Use Functions/Procedures?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jan 27, 2016 at 1:28 PM, Bret Stern <bret_stern@xxxxxxxxxxxxxxxxxxxxx> wrote:
On this track (possibly unrelated)...can a view be used as part of the multi table update
Just curious

​Never done so myself but - I believe so though doing so over a one-to-many relationship can be tricky.

That said probably no trickier than do so via a function.  In both scenarios you need to use arrays to approximate sets of records and then decompose the array to insert the relevant records in the "many" table.

David J.



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux