pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: G. Anthony Reina <reina@nsi.edu>
To: reina@nsi.edu, "pgsql-questions@postgresql.org" <pgsql-sql@postgreSQL.org>
Subject: Selecting from float4[] arrays
Date: Tue, 22 Sep 1998 13:09:55 -0700
Message-ID: <36080413.5DA79691@nsi.edu> (raw)

Anyone know how I could select something from a table for all cases
where one or more value in an array of floats for that table equals a
specified value.

example,

	select * from table_name where table_name.float_array = 2.5;

where float_array is defined as an array of floats (float4[]).

I know the line I used in the example won't work because '=' doesn't
work on arrays.

Thanks.
-Tony


-- 

                        ( @@ )
 ////////////////////oOO*(__)*OOo///////////////////////
//                                                    //
// G. Anthony Reina, MD                               //
// The Neurosciences Institute                        //
// 10640 John Jay Hopkins Drive                       //
// San Diego, CA   92121  USA                         //
//                                                    //
// Voice: (619) 626-2000     FAX: (619) 626-2199      //
// E-mail: reina@nsi.edu                              //
//                                                    //
///////////////////////////////////////////////////////



Message-ID: <36080413.5DA79691@nsi.edu>
Permalink:  ../36080413.5DA79691@nsi.edu/
Also on:    postgresql.org/message-id/36080413.5DA79691@nsi.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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: reina@nsi.edu
  Subject: Re: Selecting from float4[] arrays
  In-Reply-To: <36080413.5DA79691@nsi.edu>
  References: <36080413.5DA79691@nsi.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