且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

从数据表中删除行,但是求和无效.

更新时间:2023-02-02 21:01:31

dt.acceptchnges();

方法不会更新数据库,而是告诉数据表您所有数据表行都标记为rowState不变.
如果要更新数据库,则必须单独进行操作

method does not update the database but to tell the datatable that all your data table rows are marked as rowState to unchanged.

If you want to update the database you have to do seperately


使用sum()函数.....

例如.

query =从表中选择总和(列名)"


在这里,当您删除行时,...总和也不会扩展.
Use the sum() function.....

for example.

query="select sum(column name) from table"


here when u delete the rown also...sum does not effexts.