order by in c (libpq)?

From: Ken Plumbly <kvp(at)ocol(dot)com>
To: pgsql-interfaces(at)hub(dot)org
Subject: order by in c (libpq)?
Date: 1999-06-15 02:56:07
Message-ID: 3765C0C7.C401342E@ocol.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

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(at)ocol(dot)com

Browse pgsql-interfaces by date

  From Date Subject
Next Message Vikrant Rathore 1999-06-15 03:17:08 Mail about typecast
Previous Message Michael J Davis 1999-06-14 18:49:59 RE: [INTERFACES] odbc?