我试图从此查询的结果中获取COUNT():
SELECT COUNT
(SELECT *
FROM `products` AS P
INNER JOIN `aste` AS A ON P.id_asta = A.id_asta
INNER JOIN aste_i18n AS B ON A.id_asta = B.id_asta
WHERE id_fallimento = 284
AND B.lang = 'it_IT')
我该怎么做?
由于
马
答案 0 :(得分:1)
将查询结果用作派生表,并对其执行exit(1);
操作:
COUNT