如何在where子句中使用`group`进行以下查询中的比较?

时间:2017-11-29 10:50:28

标签: sql php-mysqlidb

SELECT *,
    (SELECT name FROM oc_filter_group_description fgd
     WHERE f.filter_group_id = fgd.filter_group_id AND
           fgd.language_id = '1' ) AS `group`
FROM oc_filter f
LEFT JOIN oc_filter_description fd
    ON (f.filter_id = fd.filter_id)
WHERE fd.language_id = '1' AND fd.name LIKE '%FAB%'

0 个答案:

没有答案