求SQL count(*) 的结果 放到游标里~~~~我这个SQL 错在哪里 ~~我放不进~
。。。
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
;
。。。。。