🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.delphi.bazy-danych
Article #70716

Re: Kilka parametrów w jednym select

#70716
From: zpk
Date: Thu, 18 Oct 2007 12:30
25 lines
1798 bytes
On 17 Paź, 20:01, Mariusz Konieczny <koniecz.wytni...@klub.chip.pl>
wrote:
> Rajmund Wrotek pisze:
> --
> Mariusz Konieczny> Czy jest możliwe, a jak tak to w jaki sposób, aby w
> jednym zapytaniu podać
>
> > kilka parametrów?
> >   ibQuery1.SQL.Add('SELECT * FROM LICZBA WHERE id =:param1');
> >   ibQuery1.ParamByName('param1').asInteger := 1;
> >   ibQuery1.Open;
>
> > Jednak czy można za jednym razem podać lika parametrów?
>
> SELECT * FROM LICZBA
> WHERE
> (id = :param1)
> or (id = :param2)
> or (id = :param3)
> or (id = :param4)
>
> MK

Można.
Nie mogłeś zrobić prostego testu, zamiast zawracać ..?
Technical Details
Message-ID: <1192710645.802977.258770@e9g2000prf.googlegroups.com>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!news.glorb.com!postnews.google.com!e9g2000prf.googlegroups.com!not-for-mail
References: <46d82255$0$588$f69f905@mamut2.aster.pl> <ff5imn$5gc$1@news.onet.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!news.glorb.com!postnews.google.com!e9g2000prf.googlegroups.com!not-for-mail
From: zpk <zpksoft@op.pl>
Newsgroups: pl.comp.lang.delphi.bazy-danych
Subject: Re: Kilka parametrów w jednym select
Date: Thu, 18 Oct 2007 05:30:45 -0700
Organization: http://groups.google.com
Lines: 26
Message-ID: <1192710645.802977.258770@e9g2000prf.googlegroups.com>
References: <46d82255$0$588$f69f905@mamut2.aster.pl>   <ff5imn$5gc$1@news.onet.pl>
NNTP-Posting-Host: 83.8.13.77
Mime-Version: 1.0
X-Trace: posting.google.com 1192710646 16248 127.0.0.1 (18 Oct 2007 12:30:46 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Thu, 18 Oct 2007 12:30:46 +0000 (UTC)
In-Reply-To: <ff5imn$5gc$1@news.onet.pl>
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1),gzip(gfe),gzip(gfe)
Complaints-To: groups-abuse@google.com
Injection-Info: e9g2000prf.googlegroups.com; posting-host=83.8.13.77;   posting-account=ps2QrAMAAAA6_jCuRt2JEIpn5Otqf_w0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit