用ado 下面这种格式该怎么做才能有条件的更新数据呢???
下面的代码是新增一条记录,Picture是Blob类型字段,imageID为4000,
插库成功,可为4是我想更改imageID000的这条记录,要怎以写呢?
我把rs.AddNew 改为 rs.update 和 rs.UpdateBatch 都不行,提示大意为不能更改主键.我该怎么做呢?
mstream.Mode = adModeReadWrite
mstream.Type = adTypeBinary
mstream.Open
mstream.LoadFromFile "e:\13.jpg"
rs.AddNew
rs!question="这是为什么"
rs!imageID=4000
rs!Picture= mstream.Read
rs.UpdateBatch
mstream.Close