Search Postgresql Archives

Re: PQexecParams question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2008/10/11 Grzegorz Jaśkiewicz <gryzman@xxxxxxxxx>:
> Hey folks,
> I have here piece of code, that I wrote some time ago - works fine, but I
> was wondering - if it can be improved.
> This is used to grab id list, not present on submited list. Query usually
> looks like that;
> select id from foo where id not in ($1, $2, $3...);
> and I was wondering, is it possible to call PQexecParams with query, that
> doesn't have a longish list of dollar params (in my case up to 200), but
> instead uses some other syntax, such as:
> select id from foo where id not in ($1...$200);
> If not, to guys hacking libpq and area, would it be possible to request such
> a nice and neat feature ?

why you don't use array?

regards
Pavel Stehule

> ta
>
> --
> GJ
>

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux