Re: Byte Array ?

From: Barry Lind <blind(at)xythos(dot)com>
To: Charlie Kelly <Charlie(at)CharlieKelly(dot)com>
Cc: pgsql-jdbc <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: Byte Array ?
Date: 2003-04-13 02:09:12
Message-ID: 3E98C6C8.5030700@xythos.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)postgresql(dot)org
>

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Barry Lind 2003-04-13 04:13:10 Re: patch for cursor based querys in JDBC
Previous Message Charlie Kelly 2003-04-12 23:56:43 Byte Array ?