Re: NEED URGENT HELP....

From: Iannsp <iannsp(at)gmail(dot)com>
To: Henrique P Machado <zehrique(at)gmail(dot)com>, Guy Rouillier <guyr-ml1(at)burntmail(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: NEED URGENT HELP....
Date: 2006-12-27 00:28:11
Message-ID: 4591BE1B.4040601@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-general pgsql-sql

Martijn van Oosterhout escreveu:
> On Mon, Dec 25, 2006 at 08:52:52PM -0300, Henrique P Machado wrote:
>
>> WHERE (USER_ID = $1) AND (COMPANY_ID = $2) AND BOOK_NO IN ($3)
>>
>> Could'nt he use an array in this 3rd parameter?
>>
>
> I think so, if it's written:
>
> AND BOOK_NO = ANY($3)
>
> Have a nice day,
>
I believe not because the aray have one another sintax, different of on
simple data, but if you create one stored procedure you will be
transform the data...
If you sayd array to the data like '1,2,3' is another case, and I think
you dont have problemns with this.
ok.

--
Ivo Nascimento
Iann tech - Desenvolvendo soluções com performance e segurança
http://www.ianntech.com.br

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2006-12-27 16:08:45 Re: BUG #2849: Erroronous UPDATE syntax in documentation
Previous Message Tom Lane 2006-12-26 21:38:06 Re: server process exited with exit code -1073741819 on 8.2 Windows

Browse pgsql-general by date

  From Date Subject
Next Message Marc Evans 2006-12-27 00:34:19 Re: Clustering & Load Balancing & Replication
Previous Message Ben 2006-12-26 23:44:39 Re: Clustering & Load Balancing & Replication

Browse pgsql-sql by date

  From Date Subject
Next Message BillR 2006-12-27 03:10:24 domains and serial
Previous Message Jim Buttafuoco 2006-12-26 20:27:03 Re: Related tables to a view