Autor Beitrag
sunshineh
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 44



BeitragVerfasst: Mi 16.04.08 14:26 
Hallo,
ich nutze bis jetzt für die Erstellung einer Tabelle in meiner Datenbank eine TSQLQuery.

Nun möchte ich aber keine feste Spaltenanzahl mehr, sondern den Anwender über ein TEdit entscheiden lassen, wieviele Spalten erstellt werden sollen.
Z.B. bei der Anwendereingabe 2 sollen die Spalten Wert1 und Wert2 erstellt werden.

Wie mache ich das am einfachsten?
Mit einer TSQLQuery klappt es doch dann nicht mehr, oder?
(ich habe nämlich bereits versucht die Anwendereingabe in einer Variablen abzuspeichern, aber die Variable kennt er ja in dem TSQLStatement nicht)

Danke schon mal für den Tipp!

Gruß, Helene T
Xentar
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2077
Erhaltene Danke: 2

Win XP
Delphi 5 Ent., Delphi 2007 Prof
BeitragVerfasst: Mi 16.04.08 18:56 
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Do 17.04.08 16:37 
In dem Du dynamisch die SQ-Abfrage generierst aus den Anwender-Eingaben ...

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.