order by in c (libpq)?

Поиск
Список
Период
Сортировка
От Ken Plumbly
Тема order by in c (libpq)?
Дата
Msg-id 3765C0C7.C401342E@ocol.com
обсуждение исходный текст
Ответы Re: [INTERFACES] order by in c (libpq)?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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@ocol.com


В списке pgsql-interfaces по дате отправления:

Предыдущее
От: Vikrant Rathore
Дата:
Сообщение: Mail about typecast
Следующее
От: Sergio Perez
Дата:
Сообщение: problems with pgaccess 0.93 and postgres 6.3