Re: inet datatype question!

Поиск
Список
Период
Сортировка
От
Тема Re: inet datatype question!
Дата
Msg-id 39424.195.151.26.4.1021952577.squirrel@webmail.transfer.kg
обсуждение исходный текст
Ответ на Re: inet datatype question!  (Dave Cramer <Dave@micro-automation.net>)
Список pgsql-jdbc
Thank you very much for a reply! If for retrieve I use getString, what
should I use for inserting an inet datatype?
Rgrds...

> 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.bakirov@transfer.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
>>
>>
>
>
>
>
> ---------------------------(end of
> broadcast)--------------------------- TIP 6: Have you searched our list
> archives?
>
> http://archives.postgresql.org




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

Предыдущее
От: Dave Cramer
Дата:
Сообщение: Re: feature request
Следующее
От: Dave Cramer
Дата:
Сообщение: [Fwd: [HACKERS] JDBC with SSL for postgresql]