Re: Database connectivity using a unix shell

Поиск
Список
Период
Сортировка
От Jasbinder Bali
Тема Re: Database connectivity using a unix shell
Дата
Msg-id a47902760607050911i5786c0d3qeb408854fce77e08@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Database connectivity using a unix shell  (Richard Broersma Jr <rabroersma@yahoo.com>)
Ответы Re: Database connectivity using a unix shell  ("Joshua D. Drake" <jd@commandprompt.com>)
Список pgsql-general
Hi,
Before using ECPG, i had a few questions.

Lets say i have a C code and want to do something with my postgres database.
What all header files do i need for ECPG.
Also how and where exactly am i going to write these EXEC SQL statements for ECPG.
Can I be briefed about the steps to do this.

Regards,
~Jas

On 6/29/06, Richard Broersma Jr <rabroersma@yahoo.com > wrote:
> What if I don't have a shell script and instead of that I have a C code and
> need to connect to the postgres database.
> How do i accomplish this? do i still need to call this psql clinet interface
> or there is some other way to do it..

In this case you could use ecpg:
http://www.postgresql.org/docs/8.1/interactive/ecpg.html

If you are interested in any other programming languages that can connect please see:
http://www.postgresql.org/download/
notice the section:
"Application Programming Interfaces"

Regards,

Richard Broersma Jr.


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

Предыдущее
От: John Purser
Дата:
Сообщение: Re: Inheritance and unique constraints
Следующее
От: "Jasbinder Bali"
Дата:
Сообщение: ECPG usage