pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Iannsp <iannsp@gmail.com>
To: Henrique P Machado <zehrique@gmail.com>
To: Guy Rouillier <guyr-ml1@burntmail.com>
To: pgsql-general@postgresql.org
Subject: Re: NEED URGENT HELP....
Date: Tue, 26 Dec 2006 22:28:11 -0200
Message-ID: <4591BE1B.4040601@gmail.com> (raw)
In-Reply-To: <20061226115348.GB8412@svana.org>
References: <20061221074133.5B05A872DC@cal1-1.us4.outblaze.com>
	<4590629B.9070808@burntmail.com>
	<ef1265e0612251552v49d9179br98bc25799a24ad24@mail.gmail.com>
	<20061226115348.GB8412@svana.org>

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




view thread (14+ messages)

Message-ID: <4591BE1B.4040601@gmail.com>
Permalink:  ../4591BE1B.4040601@gmail.com/
Also on:    postgresql.org/message-id/4591BE1B.4040601@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: iannsp@gmail.com, zehrique@gmail.com, guyr-ml1@burntmail.com, pgsql-general@postgresql.org
  Subject: Re: NEED URGENT HELP....
  In-Reply-To: <4591BE1B.4040601@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox