Re: [GENERAL] date and C

From: Bruce Tong <zztong(at)laxmi(dot)ev(dot)net>
To: Bruno LEVEQUE <bleveque(at)unilim(dot)fr>
Cc: pgsql-general(at)postgreSQL(dot)org
Subject: Re: [GENERAL] date and C
Date: 1998-07-08 13:08:02
Message-ID: Pine.LNX.3.95.980708090058.13539E-100000@laxmi.ev.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)laxmi(dot)ev(dot)net | -- Joe Walsh for the 21st Century

In response to

  • date and C at 1998-07-07 19:31:26 from Bruno LEVEQUE

Browse pgsql-general by date

  From Date Subject
Next Message Sferacarta Software 1998-07-08 13:35:06 Re[2]: [GENERAL] COALESCE() or NVL()
Previous Message Herouth Maoz 1998-07-08 12:27:15 Re: [GENERAL] translate "bug"?