编程论坛's Archiver

jxyga111 发表于 2008-6-2 10:45

如何判斷兩個表中字段數據不一樣(解決)

如何判斷兩個表中字段數據不一樣:
如;t_aa.price
   t_bb.price
要判斷這兩個字段的數據不同
用vb 急啊

[[it] 本帖最后由 jxyga111 于 2008-6-3 13:36 编辑 [/it]]

jxyga111 发表于 2008-6-2 11:37

難道沒人知道?

三断笛 发表于 2008-6-2 11:54

查询,Select t_aa.price from t_aa,t_bb where t_aa.price=t_bb.price
检查RecordCount

jxyga111 发表于 2008-6-2 14:04

[quote][bo][un]三断笛[/un] 在 2008-6-2 11:54 的发言:[/bo]

查询,Select t_aa.price from t_aa,t_bb where t_aa.price=t_bb.price
检查RecordCount [/quote]

沒有啊
我是要判斷如果t_aa.price<>t_bb.price 就讓修改可以修改
否則不能修改

页: [1]

Powered by Discuz! Archiver 6.1.0  © 2001-2007 Comsenz Inc.