首先你要有访问另一个用户表的权限,进入另一个用户:grant all on table2 to user1;select a.字段1,b.字段1 from table1 a,table2 b where a.字段1='??' and b.字段1='??';