MySQL Row计数长查询

时间:2016-01-07 10:01:26

标签: mysql count

我试图从此查询的结果中获取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')

我该怎么做?

由于

1 个答案:

答案 0 :(得分:1)

将查询结果用作派生表,并对其执行exit(1);操作:

COUNT