简化后:
有两个表reporterinfo,monthoutlay他们有相同的字段name,address
现在需要从reporterinfo中搜索出这样的记录:该记录的name,address不同时存在于
monthoutlay的某一字段中。语句我是这样写的
select r.name,r.address,post,phone,mode,re from reporterinfo r,monthoutlay m
where r.name<>m.name and r.address<>m.address
有两个表reporterinfo,monthoutlay他们有相同的字段name,address
现在需要从reporterinfo中搜索出这样的记录:该记录的name,address不同时存在于
monthoutlay的某一字段中。语句我是这样写的
select r.name,r.address,post,phone,mode,re from reporterinfo r,monthoutlay m
where r.name<>m.name and r.address<>m.address
解决的办法是用字查询,如果foxpro不能用子查询,就先做个VIEW将同时存在的查处来,在关联
取不等