|
AnyDAC
|
Enables to explicitly assign values to the auto incremental column.
Set IdentityInsert property to True to enable explicit assignment of a value to the auto incremental column. By default it is False. Note, that not all DBMS's support assignment of a value to the identity column.
When a DBMS supports sequences or generators, and application uses client side field value filling from a sequence, then it is required to set IdentityInsert to True.
property IdentityInsert: Boolean;
Auto-Incremental Fields, TADDataMove
TADAutoIncField(ADQuery1.Fields[0]).IdentityInsert := True; ADQuery1.Append; ADQuery1.Fields[0].Value := 123; ADQuery1.Post;
|
What do you think about this topic? Send feedback!
|