以上两幅图片,第一句查询--“SELECT * FROM sc_17_3x
where wzx=0”;第二句查询“select a.* from sc_17_3x a,(select * from(select word from s_dc_17 where sf=1)as tb) b where (a.fw=b.word or a.sw=b.word ) and a.wzx=0”两句都查询sc_17_3x表,第一句就查询了sc_17_3x表所有wzx=0的行数为2207行,但第二句加上了and子句,符合wzx=0行数居然为2209行,比第一句还多了2句,为什么呢?还有我怎样能查询得出是那两句多了出来的,请你说说,感谢!
第二个是联合查询,如果有重复的记录,返回笛卡尔集就会比第一个多。