Article View: pl.comp.lang.delphi.bazy-danych
Article #70248Re: Query i pamięć - długie
From: zpk
Date: Sat, 30 Jun 2007 19:20
Date: Sat, 30 Jun 2007 19:20
27 lines
1750 bytes
1750 bytes
> w Query jest zapytanie: > > SELECT * FROM Baza WHERE Stary_Indeks IN > > ( SELECT Stary_Indeks FROM Baza.DB GROUP BY Stary_Indeks > > HAVING count(Stary_Indeks)>1) AND > > Indeks_mat LIKE '10%' > > ORDER BY Nazwa > select w select jest bardzo powolne, poza tym co to za indeks "stary_indeks" który musisz grupować? spróbuj np. coś w tym stylu: SELECT b.* FROM Baza b, Baza.DB c WHERE b.Stary_Indeks=c.Stary_Indeks AND b.Indeks_mat LIKE '10%' ORDER BY b.Nazwa (wygląda mi to na DBF, więc nie ręczę za poprawność tego co napisałem, ale sens powinieneś załapać :) Paweł
Technical Details
Message-ID:
<1183231212.965122.296630@o61g2000hsh.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!o61g2000hsh.googlegroups.com!not-for-mailReferences:
<f63fqu$4qt$1@inews.gazeta.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!o61g2000hsh.googlegroups.com!not-for-mail From: zpk <zpksoft@op.pl> Newsgroups: pl.comp.lang.delphi.bazy-danych Subject: Re: Query i pamięć - długie Date: Sat, 30 Jun 2007 12:20:12 -0700 Organization: http://groups.google.com Lines: 29 Message-ID: <1183231212.965122.296630@o61g2000hsh.googlegroups.com> References: <f63fqu$4qt$1@inews.gazeta.pl> NNTP-Posting-Host: 83.8.37.69 Mime-Version: 1.0 X-Trace: posting.google.com 1183231213 15505 127.0.0.1 (30 Jun 2007 19:20:13 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sat, 30 Jun 2007 19:20:13 +0000 (UTC) In-Reply-To: <f63fqu$4qt$1@inews.gazeta.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: o61g2000hsh.googlegroups.com; posting-host=83.8.37.69; posting-account=uRkxjw0AAACZuHUKSaRNNQyK3sLdBdka Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit