SELECT CONCAT_WS(" ",strLname,strFname,strMname) AS lessor_name
FROM tbl_lessor
WHERE lessor = '$lessor_name'
最佳答案
这可能是由于lessor而不是where子句中的lessor_name.所以尝试下面一次:
原文链接:https://www.f2er.com/mysql/433730.htmlSELECT CONCAT_WS(" ",strMname) AS lessor_name
FROM tbl_lessor
having lessor_name= '$lessor_name'