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' ;
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' ;
相关文章推荐
- Hibernate学习(五):session.update
- updatepanel用法之triggers使用示例
- Gradle sync failed: Plugin is too old, please update to a more recent version
- SELECT LOCK IN SHARE MODE and FOR UPDATE
- UpdatePanel的使用
- svn update时 版本冲突问题解决
- ASP.NET AJAX UpdatePanel 控件实现剖析
- Weekly Metasploit Update: Android WebView Exploit
- mysql update语句
- 解决UpdatePanel无刷新,注册客户端脚本不执行问题
- SQL Server : Optimizing Update Queries for Large Data Volumes
- 预览安卓xml布局文件提示 This version of the rendering library is more recent than your version of ADT plug-in. Please update ADT plug-in,
- ASP.NET AJAX入门系列(4):使用UpdatePanel控件(一)
- 一键访问Win8.1 Update的磁盘空间查看资源占用情况
- (Insert)插入语句,(Update)修改语句,(delete)删除语句
- 自己动手写ORM框架(八):实现修改功能Update方法
- 并发update/update引起的buffer busy wait
- 第五章 mybatis批量更新update
- JDK1.6 Update21 下载
- 微软很坑爹,SCVMM Update Rollup 1安装后还需执行SQL脚本!