Search Postgresql Archives

Re: How do I select composite array element that satisfy specific conditions.

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

 



On Wednesday, May 23, 2018, a <372660931@xxxxxx> wrote:
How could I select the element of Ay that satisfy x=3??

 https://www.postgresql.org/docs/10/static/arrays.html#ARRAYS-SEARCHING

The note at the end of that section applies here though, you are forcing yourself to fight the nature of the relational database by not normalizing your data model.  Converting your array of composites to a table is going to make life considerably easier if you expect to have to performs searches like you requrest help for here.

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