Autor Beitrag
JRegier
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1268

Win XP Home, Prof, 2003 Server
D6 Enterprise
BeitragVerfasst: Mo 12.09.05 12:13 
Kennen alle DB's das wörtchen LIMIT 1 ?
j-a-n@gmx.de
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 84


Delphi 7
BeitragVerfasst: Mo 12.09.05 12:22 
solange du "alle" fragst, kannst du nur "nein" zu hören kriegen.

mssql kann es afaik nicht, der macht das über select top 1 from....

_________________
--
Dieses Werk ist unter einer Creative Commons 3.0 Lizenz lizenziert und darf unter Namensnennung kopiert, weitergegeben, veröffentlicht und verändert werden.
Martin1966
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1068

Win 2000, Win XP
Delphi 7, Delphi 2005
BeitragVerfasst: Mo 12.09.05 13:14 
Laut der Doku aber schon: dev.mysql.com/doc/mysql/de/select.html

Lg Martin
j-a-n@gmx.de
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 84


Delphi 7
BeitragVerfasst: Mo 12.09.05 13:33 
user profile iconj-a-n@gmx.de hat folgendes geschrieben:
mssql kann es afaik nicht, der macht das über select top 1 from....

_________________
--
Dieses Werk ist unter einer Creative Commons 3.0 Lizenz lizenziert und darf unter Namensnennung kopiert, weitergegeben, veröffentlicht und verändert werden.
Martin1966
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1068

Win 2000, Win XP
Delphi 7, Delphi 2005
BeitragVerfasst: Mo 12.09.05 13:35 
Oh... :oops:
JRegier Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1268

Win XP Home, Prof, 2003 Server
D6 Enterprise
BeitragVerfasst: Mo 03.10.05 18:30 
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
// Also ich denke einfach ich Selektiere beim Start:
'SELECT Feld1, Feld2, .. FROM `tabelle` WHERE Standard_Sortieren_Feld = (SELECT MIN(Standard_Sortieren_Feld) FROM `tabelle`)'

//beim Next:
'SELECT Feld1, Feld2, .. FROM `tabelle` WHERE Standard_Sortieren_Feld > LastValue and Standard_Sortieren_Feld LIKE LastValue[0]+1'


Also auf die Art müßte ich machen um Universal zu sein! Aber wenn kein Ergebnis kommt, also bei RecordCount = 0
müßte ich also Nächstes Zeichen nehmen bis ich ein Ergebnis erhalte! Nur wenn ich z.B ein BIGINT Feld habe
und z.B letzter Wert war 100 und der nächste 5.000.000 dann werde ich wohl 4.999.900 mal eine Anfrage machen
müßen! Das wird zu lange dauern, ich denke mal dass hier bei Strings etwas einfacher ist!

Also wer weiß Rat? Wie kann man über StandardBefehle ein LIMIT reinbekommen? Ich möchte meine Anwendung Universal
machen also nur StandardBefehle!