🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Kilka parametrów w jednym select

#70715
From: Mariusz Konieczny
Date: Wed, 17 Oct 2007 18:01
22 lines
1380 bytes
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
Technical Details
Message-ID: <ff5imn$5gc$1@news.onet.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.rmf.pl!agh.edu.pl!news.agh.edu.pl!news.onet.pl!not-for-mail
References: <46d82255$0$588$f69f905@mamut2.aster.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.rmf.pl!agh.edu.pl!news.agh.edu.pl!news.onet.pl!not-for-mail
From: Mariusz Konieczny <koniecz.wytnijto@klub.chip.pl>
Newsgroups: pl.comp.lang.delphi.bazy-danych
Subject: Re: Kilka parametrów w jednym select
Date: Wed, 17 Oct 2007 20:01:59 +0200
Organization: Onet.pl
Lines: 22
Message-ID: <ff5imn$5gc$1@news.onet.pl>
References: <46d82255$0$588$f69f905@mamut2.aster.pl>
NNTP-Posting-Host: dynamic-87-105-245-170.ssp.dialog.net.pl
Mime-Version: 1.0
X-Trace: news.onet.pl 1192644119 5644 87.105.245.170 (17 Oct 2007 18:01:59 GMT)
X-Complaints-To: usenet@news.onet.pl
NNTP-Posting-Date: Wed, 17 Oct 2007 18:01:59 +0000 (UTC)
X-Sender: TzwTYrcXy/YN+eKrCgnCJA==
In-Reply-To: <46d82255$0$588$f69f905@mamut2.aster.pl>
User-Agent: Thunderbird 2.0.0.6 (Windows/20070728)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit