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