现在,我在数据库中有四个表,询问如何使用PHPMYSQL的单个搜索参数搜索这四个表,并在单个页面中显示结果?非常感谢朋友们。
发布于 2013-03-15 06:32:11
Select *
From table1 inner join table2 on table1.col=table2.col
inner join table3 on table#.col=table3.col ..........
where Col=?你可以在?=上替换吗?如果两个表具有相同的列名,则使用"using ( column )“。
https://stackoverflow.com/questions/15421398
复制相似问题