SQL数据库把a表的字段1.字段2 放到b表的字段1.字段2中去2个表的字段1 字段2列名都一样 10
UPDATEMETERDEVICESETroomid=(SELECTroomidFROMROOMINFOWHERE(roomname=meterdevice.roomdm...
UPDATE METERDEVICE
SET roomid =
(SELECT roomid
FROM ROOMINFO
WHERE (roomname = meterdevice.roomdm))
UPDATE METERDEVICE
SET roomdm =
(SELECT roomdm
FROM ROOMINFO
WHERE (meterdevice.roomid =ROOMINFO.roomid))
z执行后没有变化。。。 展开
SET roomid =
(SELECT roomid
FROM ROOMINFO
WHERE (roomname = meterdevice.roomdm))
UPDATE METERDEVICE
SET roomdm =
(SELECT roomdm
FROM ROOMINFO
WHERE (meterdevice.roomid =ROOMINFO.roomid))
z执行后没有变化。。。 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询