表中有自增长字段tID,为什么我在程序里面增加内容,老是提示Field tID must hava a value我没有用任何代码,只用DBNavigator控件和DBGrid控件测试,我一按DBNavigator控件的“钩”,就出现这种情形了,我还没有用ApplyUpdate呢。但我换成用ADO连接,却不会出现这样的问题。诚心求教各位!
1 選擇tID字段,將ProvidersFlag pfInUpdate設為False以下為說明 ProviderFlags is only relevant for fields that appear in the data packets supplied to a provider component event handlers. This property is a set of flags that determine how the field is used when applying updates or resolving update errors.
pfInUpdate設為False以下為說明
ProviderFlags is only relevant for fields that appear in the data packets supplied to a provider component event handlers. This property is a set of flags that determine how the field is used when applying updates or resolving update errors.
这种情况应该不是数据库在检测,而是你的数据集组件设置了检测
http://www.delphibbs.com/delphibbs/dispq.asp?lid=2056609有没有高手啊?
這樣做是種欺騙行為, 它不會保存這個數的.
同意 JonnySun的意见
begin
//這樣做是種欺騙行為, 它不會保存這個的.因為 pfInUpdate設為False@!!
Query1.FieldByName('tid').asinteger:=gettickcount;
end;