Autor Beitrag
DelphiFreund
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 120

Win XP
D7 Enterprise
BeitragVerfasst: Fr 25.06.04 14:56 
Hi Leute,
Ihr kennt doch, dass ihr mit der Datenbankoberfäche 'Eingabe erforderlich' bei Spalten einstellen könnt. Nun möchte ich mit meinem Programm Datenbanken erstellen können, bei denen die Eingabe ebenfalls erfoderlich ist. Etwa so:
ausblenden Delphi-Quelltext
1:
 'CREATE TABLE Hallo.db ("Nr" AUTOINC,"Währung" char(25))'					


nur noch irgendein kleines Wörtchen dazu, welches ich nicht kenne und dann müsste es ja funktioneren.
Udontknow
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2596

Win7
D2006 WIN32, .NET (C#)
BeitragVerfasst: Fr 25.06.04 15:07 
Äh, das ist jetzt nur geraten, mache nicht viel mit Desktop-DBs : "required"? :)

Cu,
Udontknow
neojones
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1206
Erhaltene Danke: 1



BeitragVerfasst: Fr 25.06.04 15:25 
NOT NULL wies der ANSI-Standard vorschreibt...

_________________
Ha! Es compiliert! Wir können ausliefern!
DelphiFreund Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 120

Win XP
D7 Enterprise
BeitragVerfasst: Fr 25.06.04 15:30 
Hallo nochmal;
Dann bekomme ich die Fehlermeldung 'Merkmal nicht vorhanden'. Was kann ich dagegen tun?
grayfox
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 800

win98, winXP
D4 Standard; D6 Personal
BeitragVerfasst: Fr 25.06.04 17:43 
hallo delphifreund!

ist bei einem autoinc-feld das kriterium 'eingabe verlangen' nicht etwas zuviel des guten? :wink:

mfg, stefan
DelphiFreund Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 120

Win XP
D7 Enterprise
BeitragVerfasst: Mi 30.06.04 16:27 
Ich meine nicht das autoinc-feld sondern das char-feld. Hätte ich vielleicht weglassen sollen.