Autor Beitrag
cugar
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 27

win7
Delphi XE Prof
BeitragVerfasst: So 13.04.03 10:54 
Hallo Leute!
Habe da ein Problem! Möchte gerne an einer Paradox-Tabelle ein Feld verändern, und zwar an einer bestehenden Tabelle möchte ich das Feld "Bezeichnung" vom Typ Char(30) in Char(50) ändern. Die Spalte enthält bereits Daten.
In MySQL geht es mit: "ALTER TABLE Artikel MODIFY Bezeichnung CHAR(50);" aber in Delphi bekomme ich eine Fehlermeldung: "ungültiges-Schlüsselwort: MODIFY". Es muß doch aber auch gehen, ohne die Spalte neu erstellen zu müssen... aber wie??

Gruß
Andreas
CenBells
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1547

Win 7
Delphi XE5 Pro
BeitragVerfasst: So 13.04.03 12:25 
Hallo,

der gesucht befehl könnte
"Alter" anstelle "modify"
sein. Ansonsten musst du mal in der LocalSQL reference nachschauen, die delphi immer mit installiert.

Gruß
Ken
cugar Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 27

win7
Delphi XE Prof
BeitragVerfasst: So 13.04.03 15:52 
Leider nein.
In der SQL-hilfe steht nur wie man Spalten mit dem Alter-Befehl löschen oder hinzufügen kann..
LCS
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1305
Erhaltene Danke: 1

WIN 7, WIN 8
Delphi XE5, Delphi XE, Delphi 2007
BeitragVerfasst: So 13.04.03 15:53 
Hi
Nach Standard SQL geht das mit:
ausblenden Quelltext
1:
ALTER TABLE artikel ALTER bezeichnung TYPE CHAR(50)					


Gruss Lothar

_________________
Der BH ist für die Brust, der Plan ist für'n Ar...