Re: Byte Array ? - Mailing list pgsql-jdbc

From Barry Lind
Subject Re: Byte Array ?
Date
Msg-id 3E98C6C8.5030700@xythos.com
Whole thread Raw
In response to Byte Array ?  (Charlie Kelly <Charlie@CharlieKelly.com>)
List pgsql-jdbc
I think the datatype bytea is what you are looking for.  And getBytes()
is the method you are looking for.

--Barry

Charlie Kelly wrote:
> What is the correct syntax to create a table with an array of bytes?
>
> I tried
> CREATE TABLE tablename (bytearrayname TINYINT[] );
>
> but that doesn't work.
>
> Also, what is the correct getXXX method to access stored array from a
> row in a ResultSet?
>
> Thanks
>
> Charlie
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org
>


pgsql-jdbc by date:

Previous
From: Charlie Kelly
Date:
Subject: Byte Array ?
Next
From: Barry Lind
Date:
Subject: Re: patch for cursor based querys in JDBC