Board index » delphi » shrink the select
Eitan Mizrah
![]() Delphi Developer |
Sat, 13 Mar 2004 06:00:59 GMT
|
Eitan Mizrah
![]() Delphi Developer |
Sat, 13 Mar 2004 06:00:59 GMT
shrink the select
Hello,
Is there any method for shrinking any select statment, I need a code sample. Thanks :o) |
Phil Shrimpto
![]() Delphi Developer |
Fri, 12 Mar 2004 18:15:21 GMT
Re:shrink the selectQuoteIn article <3baf0445_1@dnews>, eit...@e-ntouch.com wrote... Quote> Is there any method for shrinking any select statment, With Interbase, you will need to use a stored procedure that exits after CREATE PROCEDURE PRC$MYPROC(NumRecs INTEGER) Phil |
Sergey Dovganu
![]() Delphi Developer |
Fri, 12 Mar 2004 18:18:21 GMT
Re:shrink the selectHi, only using SP: set term ^; |
Sergey Dovganu
![]() Delphi Developer |
Fri, 12 Mar 2004 18:20:34 GMT
Re:shrink the selectOops, sorry, I didn't see your answer. With best regards, Sergey. -- |
Jan Henrik Sylveste
![]() Delphi Developer |
Fri, 12 Mar 2004 19:49:56 GMT
Re:shrink the selectPlease, correct your system time. You're ahead of us -- at least not a few years or so, thus your posting is Cheers, |
Eitan Mizrah
![]() Delphi Developer |
Fri, 12 Mar 2004 20:17:50 GMT
Re:shrink the selectI used Oracle before, In Oracle there is a simple way to do so : Select ... from ... Is there any simplier way to do select of 5 records like oracle does ? Quote"Sergey Dovganuk" <dovganuk_ser...@mail.ru> wrote in message Quote> Hi, |
Martijn Tonie
![]() Delphi Developer |
Fri, 12 Mar 2004 20:40:00 GMT
Re:shrink the select"Eitan Mizrahi" <eit...@e-ntouch.com> schreef in bericht Quote> I used Oracle before, Quote> (I need it for speeding up the query, and I don't think that fetching the language) it won't fetch any records yet, but will execute the query: the resultset is readied for you at the server - if you fetch 5 records and close it, you still fast enough... -- InterBase Workbench - The Developer Tool for InterBase |
Phil Shrimpto
![]() Delphi Developer |
Fri, 12 Mar 2004 21:17:34 GMT
Re:shrink the selectQuoteIn article <3baf31ea_2@dnews>, eit...@e-ntouch.com wrote... Quote> Sorry of the newbie question, Phil |
Sean Leyn
![]() Delphi Developer |
Fri, 12 Mar 2004 21:29:03 GMT
Re:shrink the selectMartijn, Quote"Martijn Tonies" <m.ton...@upscene.com> wrote in message Quote
new SELECT FIRST X syntax of the Firebird. So there is a simple way to do it. Sean |
Eitan Mizrah
![]() Delphi Developer |
Fri, 12 Mar 2004 21:15:24 GMT
Re:shrink the selectThanks, Sorry of the newbie question, -- line 2, char 22 is "varchar" (the line was : returns (field1 varchar), Quote"Sergey Dovganuk" <dovganuk_ser...@mail.ru> wrote in message Quote> Hi, |
Martijn Tonie
![]() Delphi Developer |
Fri, 12 Mar 2004 22:39:13 GMT
Re:shrink the select"Sean Leyne" <sle...@atkin.com> schreef in bericht Quote> Martijn, about InterBase ( I do that too some times :)) -- InterBase Workbench - The Developer Tool for InterBase - Hide quoted text - - Show quoted text - Quote
|
Sergio Samayo
![]() Delphi Developer |
Fri, 12 Mar 2004 22:25:29 GMT
Re:shrink the selectBe aware that SKIP & LIMIT are Firebird specific. -- "Sean Leyne" <sle...@atkin.com> escribi en el mensaje Quote> Martijn, |
Sean Leyn
![]() Delphi Developer |
Fri, 12 Mar 2004 23:30:57 GMT
Re:shrink the selectSergio, Quote> Be aware that SKIP & LIMIT are Firebird specific. Quote> "Sean Leyne" <sle...@atkin.com> escribi en el mensaje |
Eitan Mizrah
![]() Delphi Developer |
Sat, 13 Mar 2004 00:06:42 GMT
Re:shrink the selectI did something like this : set term ^; create procedure x returns (a timestamp) as begin for select a_date_time from a_table into :a do begin suspend end; end^ set term ;^ The error ------------- Dynamic SQL Error Token unknown - line 10, char 3 (I run the sql at IBConsole 1.0.0.315, database dialect is 3). Quote"Phil Shrimpton" <p...@nospam.shrimpton.co.uk> wrote in message Quote> In article <3baf31ea_2@dnews>, eit...@e-ntouch.com wrote... |
Wood
![]() Delphi Developer |
Sat, 13 Mar 2004 01:47:50 GMT
Re:shrink the selectQuote"Eitan Mizrahi" <eit...@e-ntouch.com> wrote in message Quote> I did something like this : suspend; end Notice the difference in where the semi-colon is. HTH - Hide quoted text - - Show quoted text - Quote
|