select * from 表1,表2,表3 where 表1.g=表2.g and 表1.g=表3.g