From: Alexis Maldonado <amaldona@ctcd.cc.tx.us>
To: pgsql-general@postgresql.org
Subject: SQL question..
Date: Wed, 17 Apr 2002 11:50:56 -0500
Message-ID: <006d01c1e630$0b8356a0$14818b0a@ctcd.cc.tx.us> (raw)
I know this might be a dumb basic sql question but..
I have a query list of IDs ( 4,3,1,2,12,5,6,8,7,9,11)
I want to build a query that gets those IDs in the exact same order but when i do
Select * From Table
Where ID IN ( 4,3,1,2,12,5,6,8,7,9,11)
It gets all the IDs in random order..
how can i get them in the order listed?
Thanks,
Alex
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-general@postgresql.org
Cc: amaldona@ctcd.cc.tx.us
Subject: Re: SQL question..
In-Reply-To: <006d01c1e630$0b8356a0$14818b0a@ctcd.cc.tx.us>
References: <006d01c1e630$0b8356a0$14818b0a@ctcd.cc.tx.us>
* 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