我通过该语句查询出多条记录 如100条
SELECT ds.VERSION_ID FROM  tab_DEVICESTATE ds ,tab_DEVICEUSER du  where ds.USID=du.USID and ds.VERSION_ID!='5' and du.ttype=2 and du.UNAME like '%08BC%'
我要将查询出来的记录中的ds.VERSION_ID修改为ds.VERSION_ID=5
这个语句怎么写呀?
update SANY_DEVICESTATE t set t.VERSION_ID=5 where t.usid=??
我写为:update tab_DEVICESTATE t set t.VERSION_ID=5 where t.usid=(SELECT ds.VERSION_ID FROM  tab_DEVICESTATE ds ,tab_DEVICEUSER du  where ds.USID=du.USID and ds.VERSION_ID!='5' and du.ttype=2 and du.UNAME like '%08BC%')
出错:“单行子查寻返回多个行”
我应该怎么做呢?