pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Richard Broersma Jr <rabroersma@yahoo.com>
To: Bruno Wolff III <bruno@wolff.to>
To: mawrya <mawrya@furthernorth.net>
Cc: pgsql-sql@postgresql.org
Subject: Re: select based on multi-column primary keys
Date: Fri, 19 Jan 2007 20:57:37 -0800 (PST)
Message-ID: <244523.74626.qm@web31808.mail.mud.yahoo.com> (raw)
In-Reply-To: <20070120014524.GC30390@wolff.to>

> SELECT * FROM iopoints WHERE systemid=123 AND enclosureid='ab' AND pointid=56

A slight variation of the syntax would be: 

select * from iopoints where (systemid, enclosureid, pointid) = (123,'ab',56);

this table and fields sounds alot like a control system be being modeled. :-)

Regards,
Richard Broersma Jr.



view thread (7+ messages)  latest in thread

Message-ID: <244523.74626.qm@web31808.mail.mud.yahoo.com>
Permalink:  ../244523.74626.qm@web31808.mail.mud.yahoo.com/
Also on:    postgresql.org/message-id/244523.74626.qm@web31808.mail.mud.yahoo.com

 · 

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: rabroersma@yahoo.com, bruno@wolff.to, mawrya@furthernorth.net
  Subject: Re: select based on multi-column primary keys
  In-Reply-To: <244523.74626.qm@web31808.mail.mud.yahoo.com>

* 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