我想搞个选票统计程序,请问怎么统计才方便点?

解决方案 »

  1.   

    nameid   countnum
    1            0  
    2            0
    3            0
    请问怎么用sql的update使对应的countnum增加?谢谢!
      

  2.   

    update countnum=countnum+1 where nameid=1
      

  3.   

    sorry
    update tablexxx set countnum=countnum+1 where nameid=1
      

  4.   

    qy_tongji.close;
    qy_tongji.sql.text := 'update tongji set countnum=countnum+1 where nameid='+quotedstr(add.Text);
    qytongji.execsql;请问有什么错?