Autor Beitrag
Hendrik
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 324



BeitragVerfasst: Di 07.10.03 18:20 
Hi!

Ist es möglich in einer Table Datensätze zu verschieben?
smiegel
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 992
Erhaltene Danke: 1

WIN 7
D7 Prof., C#, RAD XE Prof.
BeitragVerfasst: Di 07.10.03 18:34 
Hallo,

was soll das bringen?

_________________
Gruß Smiegel
Ich weiß, daß ich nichts weiß, aber ich weiß mehr als die, die nicht wissen, daß sie nichts wissen. (Sokrates)
Hendrik Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 324



BeitragVerfasst: Di 07.10.03 19:04 
Ich möchte die Datensätze in einem DBCTRLGrid anders anordnen.
smiegel
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 992
Erhaltene Danke: 1

WIN 7
D7 Prof., C#, RAD XE Prof.
BeitragVerfasst: Di 07.10.03 19:31 
Hallo,

das macht man am besten mit einem SQL-Statement in der ORDER BY - Klausel.

_________________
Gruß Smiegel
Ich weiß, daß ich nichts weiß, aber ich weiß mehr als die, die nicht wissen, daß sie nichts wissen. (Sokrates)
Hendrik Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 324



BeitragVerfasst: Di 07.10.03 20:01 
Könntest du das vielleicht etwas genauer sagen? Ich habe bisher nur mit der TTable gearbeitet. Von SQL habe ich keine Ahnung...
smiegel
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 992
Erhaltene Danke: 1

WIN 7
D7 Prof., C#, RAD XE Prof.
BeitragVerfasst: Mi 08.10.03 06:08 
Hallo,

anstatt einer TTable nimmst Du eine TQuery. Eine SQL-Anweisung kannst Du dann folgendermaßen ausführen:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
...
with Query1 do
begin
  Close;
  SQL.Clear;
  SQL.Add('SELECT Name, Vorname, Strasse FROM "c:\db\adressen.dbf"');
  SQL.Add('ORDER BY Name, Vorname');
  Open;
end; // with
...


Das Beispiel geht von einer DBase-Tabelle aus. Sollte aber ohne weiteres übertragbar sein.

_________________
Gruß Smiegel
Ich weiß, daß ich nichts weiß, aber ich weiß mehr als die, die nicht wissen, daß sie nichts wissen. (Sokrates)
Maggi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 160

WIN XP, WIN 2003
D5 Enter D 2006
BeitragVerfasst: Do 16.10.03 13:24 
Hallo,

Oder du machst es ohne SQL und machst dir für deine "Andere Sortierung" einen extra Index

MfG

Maggi