public inbox for [email protected]  
help / color / mirror / Atom feed
From: David G. Johnston <[email protected]>
To: Shaozhong SHI <[email protected]>
Cc: pgsql-sql <[email protected]>
Subject: Re: How to remove duplicates in an array and maintain the order?
Date: Sat, 8 Jul 2023 08:36:19 -0700
Message-ID: <CAKFQuwZNe3AhmsBqswShSBT5TNvw3tgvCvegQvHZE7voJ+g9XQ@mail.gmail.com> (raw)
In-Reply-To: <CA+i5JwbwFsa2nHM+MG4mXinxx_fEzQGPrpUcz=T8yGDWPQrmnw@mail.gmail.com>
References: <CA+i5JwbwFsa2nHM+MG4mXinxx_fEzQGPrpUcz=T8yGDWPQrmnw@mail.gmail.com>

On Sat, Jul 8, 2023 at 8:30 AM Shaozhong SHI <[email protected]> wrote:

> How to remove duplicated values in an array and maintain the order?
>

Use a for loop in pl/pgsql.

David J.


view thread (4+ messages)  latest in thread

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected], [email protected]
  Subject: Re: How to remove duplicates in an array and maintain the order?
  In-Reply-To: <CAKFQuwZNe3AhmsBqswShSBT5TNvw3tgvCvegQvHZE7voJ+g9XQ@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox