For R_Cl in Cl Loop
    update  yeyao_table set sl=
         (
          select 
          cout(*)
          from 
          useryouh
          where R_Cl.dhhm=useryouh.dhhm
          and  R_Cl.Youhlx=useryouh.Youhlx
          )
    where yeyao_table.dhhm = R_Cl.dhhm
    and yeyao_table.youhlx=R_Cl.Youhlx
  ;。。

解决方案 »

  1.   

    count(*) ?你可以手动改一下参数update一下 ..
      

  2.   

    select出来的默认是多条记录,就算count(*)也白搭,
    这样你set的是一个值,而select是一个集合,当然会有错了,
    分成两句话吧
      

  3.   

    hylaeion 
    ☆霖湘凝☆ 
    等 级:
     发表于:2007-12-30 20:57:222楼 得分:0 
    select出来的默认是多条记录,就算count(*)也白搭, 
    这样你set的是一个值,而select是一个集合,当然会有错了, 
    分成两句话吧 
     
    =============================================================================================
    没这说法
      

  4.   

    错误的原因,应该是写错了函数名吧。hylaeion的说法,看起来明显搞错了SQL的概念。