Re: [GENERAL] date and C

Поиск
Список
Период
Сортировка
От Bruce Tong
Тема Re: [GENERAL] date and C
Дата
Msg-id Pine.LNX.3.95.980708090058.13539E-100000@laxmi.ev.net
обсуждение исходный текст
Ответ на date and C  (Bruno LEVEQUE <bleveque@unilim.fr>)
Список pgsql-general
>    I'm using postgres95, I've a table with a row abstime's type.
> I want use it in a C program and I don't understand what I must do.

I don't intend to insult you, but have you written any C before? It is
hard to tell based on the way you asked the question. I'm going to assume
you have...

I'm not sure what you've tried already, so I'll start at the beginning.
You want to use C, which means you'll be using the LIBPQ library. I'm not
familiar with that particular data type (abstime), but odds are the
PQgetvalue() function will give it to you. You have some other functions
to call to get to the point where you can use that one.

If you've not found the docs for LIBPQ, check out the programmer manual on
the PostgreSQL web site. It has examples. If that's not enough, I can make
some more examples available.


Bruce Tong                 |  Got me an office; I'm there late at night.
Systems Programmer         |  Just send me e-mail, maybe I'll write.
Electronic Vision / FITNE  |
zztong@laxmi.ev.net        |  -- Joe Walsh for the 21st Century



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

Предыдущее
От: Herouth Maoz
Дата:
Сообщение: Re: [GENERAL] translate "bug"?
Следующее
От: Farzad FARID
Дата:
Сообщение: How to rename a database?