您的位置:首页 > 其它

update 多表

2015-04-09 12:59 155 查看
update energylog set value=(a.value+c.value)/2
from energylog as a, energylog as c
where a.idvariable=energylog.idvariable and energylog.idvariable=c.idvariable and a.tstamp='2015-03-05 10:00:00' and c.tstamp='2015-03-06 18:00:00'
and energylog.tstamp='2015-03-06 00:00:00' ;
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: