都告诉你是sql语句出错了select distinct xingb,count(xingb) from tablename group by xingb

解决方案 »

  1.   

    1楼正解,sql错误,看出错提示的第二行:You   have   an   error   in   your   SQL   syntax;   check   the   manual   that   corresponds   to   your   MySQL   server   version   for   the   right   syntax   to   use   near   'select   'Woman '   as   usersex,count(*)   as   usercount   from   yonghb   where   xingb=2 '   at   line   1 
      

  2.   

    可是我把SQL语句放到MySQL中测试了 可以提取出数据