MySQL subquery returns more than one row

前端 未结 4 2104
粉色の甜心
粉色の甜心 2020-12-01 16:22

I am executing this query:

SELECT
    voterfile_county.Name,
    voterfile_precienct.PREC_ID,
    voterfile_precienct.Name,
    COUNT((SELECT voterfile_vote         


        
4条回答
  •  天涯浪人
    2020-12-01 17:01

    See the below example and modify your query accordingly.

    select COUNT(ResultTPLAlias.id) from 
    (select id from Table_name where .... ) ResultTPLAlias;
    

提交回复
热议问题