php mysql数据库查询语句并输出

2024-11-18 02:36:47
推荐回答(1个)
回答1:

php中,.是连接符,改成这样
$proname = "SELECT areaname FROM oepre_user_params JOIN oepre_hometown ON oepre_user_params".".`provinceid` = oepre_hometown.`areaid` WHERE userid=123;