最近因为工作关系需要达到如下目的:
    当表1有数据时,根据表1的4个字段的值到表2里查找,如表1的这4个字段与表2的4个字段值相匹配,则将表1的另一个字段(BLOB)更新到表2的相应的字段里,该操作成功则删除表1里的相应数据  表1(A,B,C,D,G) 表2(A,B,C,D,E,F,G)语句一:update table3 set g= (select g from table2 where table2.a=table3.a and table2.b=table3.b and 
table2.c=table3.c and table2.d=table3.d)语句二:update table3 set g= (select t.g from table2 t ,table3 p where t.a=p.a and t.b=p.b and t.c=p.c
 and t.d=p.d ) where g is null