Autor Beitrag
inselberg
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 458



BeitragVerfasst: Do 06.01.05 03:44 
hi,

"in mysql" konnte man ein INSERT mit dem wert 0 in ein autoinc. Feld "legen" .. und der richtige wert wurde eingefügt ...

wie kann ich dies in einer access datenbank erreichen?



sorry für das komische deutsch . ist gleich 4h

_________________
hans bist du das ?
KidPaddle
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 351

WinXP,Linux
D7 Prof, XE7
BeitragVerfasst: Do 06.01.05 08:36 
Das AutoInc - Feld darf nicht in der Insert - Anweisung auftauchen, sondern es wird dann automatisch von Access gesetzt.

Gruß
KidPaddle
inselberg Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 458



BeitragVerfasst: Do 06.01.05 10:37 
also kein INSERT VALUES sonder nur INSERT SET?

_________________
hans bist du das ?
UGrohne
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Veteran
Beiträge: 5502
Erhaltene Danke: 220

Windows 8 , Server 2012
D7 Pro, VS.NET 2012 (C#)
BeitragVerfasst: Do 06.01.05 18:27 
Nein, Du musst beim INSERT die Feldnamen angeben, also z.B.
ausblenden Quelltext
1:
INSERT INTO tabelle (feld1,feld2,feld3) VALUES (wert1,wert2,wert3);					

Nur darf in diese Aufzählung das AutoInc-Feld natürlich nicht auftauchen