| From: | brian <brian(at)zijn-digital(dot)com> |
|---|---|
| To: | pgsql-general(at)postgresql(dot)org |
| Subject: | Re: PHP and Postgres arrays |
| Date: | 2008-01-19 00:15:33 |
| Message-ID: | 47914125.3010704@zijn-digital.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
Hannes Dorbath wrote:
> Yannick Warnier wrote:
>> I thought about it, but it's not very portable if you want to ship a PHP
>> application. But I admit I will fall back to that solution if I cannot
>> find any other (considering PostgreSQL might be the only open-source
>> database to offer in-fields arrays anyway).
>
> You can use the build in function array_to_string:
> http://www.postgresql.org/docs/8.3/static/functions-array.html
>
Then use implode(YOUR_DELIMITER, YOUR_STRING) to get an array.
Another solution would be to use the MDB2 (or similar) PEAR wrapper.
b
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2008-01-19 00:37:01 | Re: ATTN: Clodaldo was Performance problem. Could it be related to 8.3-beta4? |
| Previous Message | Michelle Konzack | 2008-01-18 23:45:46 | Re: [OT] RAID controllers blocking one another? |