示例1
$query = "SELECT i.category_id, h.line
FROM litline i
LEFT JOIN links as h ON (i.category_id = h.id)";
示例2
$query = "SELECT i.category, h.line
FROM litline i
LEFT JOIN links as h ON (i.category = h.name)";
请任何建议,谢谢
答案 0 :(得分:1)
在第二个查询中,您最后有一个单引号,但在开头是双引号。