From: Ken Plumbly <kvp@ocol.com>
To: pgsql-interfaces@hub.org
Subject: order by in c (libpq)?
Date: Mon, 14 Jun 1999 19:56:07 -0700
Message-ID: <3765C0C7.C401342E@ocol.com> (raw)
Hi All, I am writing an app in c, everything works fine except for the
order by in my query.
I am sending the query thusly:
sprintf(querystr, "select * from %s order by %s", table, field);
However the query always comeback in the order in which the data was
originally entered into the data base.
The variable field does actually contain a valid field name, I have
checked
it.
Any ideas????
Ken
kvp@ocol.com
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-interfaces@postgresql.org
Cc: kvp@ocol.com, pgsql-interfaces@hub.org
Subject: Re: order by in c (libpq)?
In-Reply-To: <3765C0C7.C401342E@ocol.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