我有一个dataset中存放如下sql语句:
select a.lb,a.xh,b.xm from test a,temp b where a.lb=b.lb同时有一个dbgrid与其连接,现在想在运行时在dbgrid中直接对其中的表test中的子段进行修改,保存。请问有什么方法可以达到这种要求的??
select a.lb,a.xh,b.xm from test a,temp b where a.lb=b.lb同时有一个dbgrid与其连接,现在想在运行时在dbgrid中直接对其中的表test中的子段进行修改,保存。请问有什么方法可以达到这种要求的??
里得到的记录送到一个临时表里
adoquery.edit;
adoquery.fieldbyName('a.xh').asstring:='test';
adoquery.post;