pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Brook Milligan <brook@trillium.NMSU.Edu>
To: pgsql-sql@postgresql.org
Subject: arrays
Date: Tue, 22 Sep 1998 17:40:39 -0600 (MDT)
Message-ID: <199809222340.RAA15385@trillium.nmsu.edu> (raw)

Is it possible to add an element (or more than one element) to an
array in an UPDATE?

For example, suppose I have a field like

    a   int[]

and it contains the following

    { 1, 2, 3 }

Can I UPDATE this by adding 4 to the end so that it is now

    { 1, 2, 3, 4 }

Cheers,
Brook



view thread (36+ messages)  latest in thread

Message-ID: <199809222340.RAA15385@trillium.nmsu.edu>
Permalink:  ../199809222340.RAA15385@trillium.nmsu.edu/
Also on:    postgresql.org/message-id/199809222340.RAA15385@trillium.nmsu.edu

 · 

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: pgsql-sql@postgresql.org
  Cc: brook@trillium.NMSU.Edu
  Subject: Re: arrays
  In-Reply-To: <199809222340.RAA15385@trillium.nmsu.edu>

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

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