为什么ADODataSet post提交会出错?
我是用如下的语句在SQLserver中选出数据:
SELECT W.ID, W.TreeParent, W.UserCode, W.Name, W.ShortName, W.PinYin, W.Model, W.Spec, W.Area, W.Type, W.Unit, W.Unit2, W.Scale, W.Sort, W.BarCode, W.Pos_Price, W.Pos_Purch, W.ConstPrice, W.Price1, W.Price2, W.Price3, W.Price4, W.Up_Limit, W.Down_Limit, W.Memo, W.[Use], W.Mode, IsNull(Sum(WS.Number),0) AS SumNumber, IsNull(Sum(WS.Total),0) AS SumTotal FROM Ware AS W LEFT JOIN WareStock AS WS ON W.ID = WS.WareID GROUP BY W.ID, W.TreeParent, W.UserCode, W.Name, W.ShortName, W.PinYin, W.Model, W.Spec, W.Area, W.Type, W.Unit, W.Unit2, W.Scale, W.Sort, W.BarCode, W.Pos_Price, W.Pos_Purch, W.ConstPrice, W.Price1, W.Price2, W.Price3, W.Price4, W.Up_Limit, W.Down_Limit, W.Memo, W.[Use], W.Mode
并使用DBEDit控件编辑后,为什么提交的时候会提示:
缺少更新或刷新的基本表消息
但是这个程序使用access的时候就没有问题!!!!
SELECT W.ID, W.TreeParent, W.UserCode, W.Name, W.ShortName, W.PinYin, W.Model, W.Spec, W.Area, W.Type, W.Unit, W.Unit2, W.Scale, W.Sort, W.BarCode, W.Pos_Price, W.Pos_Purch, W.ConstPrice, W.Price1, W.Price2, W.Price3, W.Price4, W.Up_Limit, W.Down_Limit, W.Memo, W.[Use], W.Mode, IsNull(Sum(WS.Number),0) AS SumNumber, IsNull(Sum(WS.Total),0) AS SumTotal FROM Ware AS W LEFT JOIN WareStock AS WS ON W.ID = WS.WareID GROUP BY W.ID, W.TreeParent, W.UserCode, W.Name, W.ShortName, W.PinYin, W.Model, W.Spec, W.Area, W.Type, W.Unit, W.Unit2, W.Scale, W.Sort, W.BarCode, W.Pos_Price, W.Pos_Purch, W.ConstPrice, W.Price1, W.Price2, W.Price3, W.Price4, W.Up_Limit, W.Down_Limit, W.Memo, W.[Use], W.Mode
并使用DBEDit控件编辑后,为什么提交的时候会提示:
缺少更新或刷新的基本表消息
但是这个程序使用access的时候就没有问题!!!!
...全文
相关推荐
delphi控件ADO添加修改删除代码
; // 提交新记录end;```**修改数据**:要修改记录,首先定位到要更改的记录(如通过Locate方法),然后改变字段值,最后调用Post方法保存更改:```delphiADOTable1.Locate
Ado操作数据库 delphi
.FieldByName('UserName').Value := 'UpdatedUser'; ADODataset1.Post; ``` 删除记录: ```delphi ADODataset1.Delete
程序主要演示ADOTable立即提交與批量提交的使用方法
BatchCount递增 if (BatchCount >= ADOTable1.BatchSize) or (ADOTable1.State = dsEdit) then begin ADOTable1.Post
ADO数据库连接.ppt
Last, Next, Prev, EOF, BOF),编辑数据(Edit, Post, Cancel),以及绑定到控件显示数据等。
Delphi中DBChart的数据库应用
.FieldByName('Info').AsString:='05-02'; AdoDataSet1.Post;实例:使用 FASTLINE 图表绑定 x、y 轴在 DBChart 组件中,可以使用


数据库相关
