order by in c code?? - Mailing list pgsql-interfaces

From Ken Plumbly
Subject order by in c code??
Date
Msg-id 37652CF4.15902D19@mail.ocol.com
Whole thread Raw
List 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@ocol.com


pgsql-interfaces by date:

Previous
From: Artur Kudelka
Date:
Subject: 16-bit ODBC driver for PostgreSQL
Next
From: Michael J Davis
Date:
Subject: RE: [INTERFACES] odbc?