From: | Dave Cramer <Dave(at)micro-automation(dot)net> |
---|---|
To: | m(dot)bakirov(at)transfer(dot)kg |
Cc: | "pgsql-jdbc(at)postgresql(dot)org" <pgsql-jdbc(at)postgresql(dot)org> |
Subject: | Re: inet datatype question! |
Date: | 2002-05-20 12:11:58 |
Message-ID: | 1021896719.16927.15.camel@inspiron.cramers |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-jdbc |
Hi,
Unfortunately java doesn't have a "type" that corresponds to the
postgres inet type. You can retrieve it as a string however. Use
getString. Of course you will have to parse the string.
Dave
On Mon, 2002-05-20 at 06:41, m(dot)bakirov(at)transfer(dot)kg wrote:
> Hi all!
>
> Can you help me with the following problem?
>
> I have created a table:
>
> CREATE TABLE(
> src inet,
> dst inet,
> size int);
>
> How can I insert an ip address or a network address into src or dst within
> a Java program, using a Postgresql JDBC driver? - Which method to use? -->
> setXxx?
> Thank you very much!
>
>
>
>
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/users-lounge/docs/faq.html
>
>
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Adler | 2002-05-20 19:03:51 | SocketException: "catch me if you can" |
Previous Message | m.bakirov | 2002-05-20 10:41:11 | inet datatype question! |