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



BeitragVerfasst: Sa 18.01.03 16:41 
Hallo

Ist es möglich während der Laufzeit ein Feld in eine bereits vorhandene Paradox Tabelle einzufügen?
Klabautermann
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Veteran
Beiträge: 6366
Erhaltene Danke: 60

Windows 7, Ubuntu
Delphi 7 Prof.
BeitragVerfasst: Sa 18.01.03 17:40 
Ja,

aber nur wenn du exclusiven Zugriff auf die Tabelle hast.
Dann kannst du es mit einem
ausblenden Quelltext
1:
2:
3:
4:
5:
ALTER TABLE Tabellenname ADD 
  (
  Spaltenname            Typ,
  Spaltenname2           Typ
  )

versuchen.

Ich bin nicht 100% sicher ob das Paradox SQL das komando unterstützt, würde dies aber mal versuchen.

Gruß
Klabautermann
grayfox
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 800

win98, winXP
D4 Standard; D6 Personal
BeitragVerfasst: Sa 18.01.03 18:08 
hallo hendrik!

anfügen & löschen funktioniert auch bei paradox tabellen:
ausblenden Quelltext
1:
Query.SQL.Text:='alter TABLE "Names.db" DROP LastName, ADD LastName CHAR(30)';					


mfg, stefan