pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ken Plumbly <kvp@mail.ocol.com>
To: pgsql-interfaces@postgresql.org
Subject: order by in c code??
Date: Mon, 14 Jun 1999 10:25:24 -0600
Message-ID: <37652CF4.15902D19@mail.ocol.com> (raw)


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



Message-ID: <37652CF4.15902D19@mail.ocol.com>
Permalink:  ../37652CF4.15902D19@mail.ocol.com/
Also on:    postgresql.org/message-id/37652CF4.15902D19@mail.ocol.com

 · 

reply

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@mail.ocol.com
  Subject: Re: order by in c code??
  In-Reply-To: <37652CF4.15902D19@mail.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