给一个例子把
比如:
table
id : int
name : char(20)
property: char(50)
当前记录id = 5 name = 'chenlh' property = 'remark'
table.edit
table.fieldbyname('id').asinteger := '6'
table.fieldbyname('name').asstring := 'AA'
table.fieldbyname('property').asstring := 'remark2'
table.post;
upWhereAll: 所有的字段放到where中
bde 产生的语句是 update table set id = 6, name = 'AAA', property = 'remark2'
where id = 5,
and name = 'chenlh'
and property = 'remark'
upWhereChanged: 主键和改变的字段放到where中
bde 产生的语句是 update table set id = 6, name = 'AAA', property = 'remark2'
where id = 5
and name = 'chenlh'
upWhereKeyOnly: 仅放主键到where中
bde 产生的语句是 update table set id = 6, name = 'AAA', property = 'remark2'
where id = 5