Q qianlai Unregistered / Unconfirmed GUEST, unregistred user! 2000-09-27 #1 我想用update语句实现在某一a表的字段aa(数值)中实现aa=aa+bb(b表的字段) 如何实现?(我用的是adoquery)
B BaKuBaKu Unregistered / Unconfirmed GUEST, unregistred user! 2000-09-27 #2 Update a Set aa = (Select bb From b Where ...) Where ... 测试过的。
W wang4762 Unregistered / Unconfirmed GUEST, unregistred user! 2000-09-27 #3 Update a Set aa =(Select a.aa+b.bb From a,b Where ...) Where ...
X xixi12359 Unregistered / Unconfirmed GUEST, unregistred user! 2000-09-27 #4 同意 WANG4762 BaKuBaKu 漏东西了
B BaKuBaKu Unregistered / Unconfirmed GUEST, unregistred user! 2000-09-28 #6 呵呵,我是漏了一点东西: Update a Set aa =<font color = #ff0000> aa + </font> (Select bb From b Where ...) Where ... wang4762 的方法不好,因为在子查询里需要多做一次联结,影响效率。 That's all.
呵呵,我是漏了一点东西: Update a Set aa =<font color = #ff0000> aa + </font> (Select bb From b Where ...) Where ... wang4762 的方法不好,因为在子查询里需要多做一次联结,影响效率。 That's all.