Re: max length of sql select statement ?

From: markus brosch <brosch(at)gmx(dot)de>
To: mallah(at)trade-india(dot)com
Cc: pgsql-sql <pgsql-sql(at)postgresql(dot)org>
Subject: Re: max length of sql select statement ?
Date: 2003-07-07 16:07:31
Message-ID: 1057594050.886.104.camel@sam
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Mon, 2003-07-07 at 17:57, mallah(at)trade-india(dot)com wrote:
> Depending on ur original problem EXISTS or IN may be usable
> EXISTS is efficient and IN can be used efficiently in 7.4 version
> of postgresql

Could be a solution?!
The question is - how long could the IN be?

I mean, if I write something like:
SELECT * FROM table WHERE columnX IN ('a', 'b', 'c', 'd', 'e', ... );
How long can the collection (list) within IN be? Also thousands of
elements?

And what means efficient? Goes the DB only once through the table?

Cheers, Markus

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message mallah 2003-07-07 16:13:45 Re: max length of sql select statement ?
Previous Message Yasir Malik 2003-07-07 15:58:35 Need help with complex query