order by in c code??

From: Ken Plumbly <kvp(at)mail(dot)ocol(dot)com>
To: pgsql-interfaces(at)postgresql(dot)org
Subject: order by in c code??
Date: 1999-06-14 16:25:24
Message-ID: 37652CF4.15902D19@mail.ocol.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces


I am writing an ap in c, everything works fine
except the order by portion of my query.

I am generating my query like this:

sprintf(querystr, "select * from %s order by %s", table, field);

however, the returned query is not sorted, it comes out as
the order the data is stored in the table.

Any ideas????

Thanks.

ken

kvp(at)ocol(dot)com

Browse pgsql-interfaces by date

  From Date Subject
Next Message Georg Ritter 1999-06-14 16:51:48 ie5 + jdbc (6.5)
Previous Message Peter Mount 1999-06-14 16:09:39 RE: [INTERFACES] JDBC Driver 6.5 where to get?