$proname = "SELECT areaname FROM oepre_user_params JOIN oepre_hometown ON oepre_user_params".".`provinceid` = oepre_hometown.`areaid` WHERE userid=123
给小弟的表加一个大哥的ID的字段,查询的时候两表联查一下。select dage.name,xiaodi.name from dage join xiaodi on dage.id=xiaodi.dage_id
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)