select * from table1,table2,table3 where tabel1.field="" and table2.field="" and table1.field=table3.field order by table1.field
类似这样的写。