Re: Internal Query

Поиск
Список
Период
Сортировка
От matt
Тема Re: Internal Query
Дата
Msg-id 006801c1f303$098c36c0$b9d47e82@puckster
обсуждение исходный текст
Ответ на Re: Getting Metadata  ("matt" <vagnoni@uiuc.edu>)
Список pgsql-docs
So, to do an internal query, I can just do:

char * query = "SELECT column from pg_attributes WHERE pg_attributes.table =
table_name";

PGresult   *result; <--where is PGresult stored?? what do i need to include
to get this struct?
result = PSQLexec(query);

What's the difference between PSQLexec and pg_exec?

And then, how do i access the information?  I see commands like pg_result in
src/interfaces/libpgtcl/pgtclCmds.c but are these backend commands that I do
run inside a given function?  the pg_stuff looks almost like front end
stuff...

sincerly,
matt




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

Предыдущее
От: Thomas Lockhart
Дата:
Сообщение: Re: timestamp() functions still documented
Следующее
От: Jean-Paul ARGUDO
Дата:
Сообщение: Re: Migrating Oracle to PostgreSQL