一个简单的SQL语句问题,在线等待~
金陵枫 2003-08-21 02:53:27 有表A和表B,表A有字段ID,SM,表B也有这两个字段,现在我想把A.ID=B.ID的B表的SM附给A 表,我写的语句如下:
update lxf_cs_tqpz set gjz=(select cs_tqpz.gjz from lxf_cs_tqpz,cs_tqpz where lxf_cs_tqpz.bm=cs_tqpz.bm)
系统提示:single-row subquery return more then one row
请问正确的语句要怎么写?