首页 > sql语句求和插入
表中有a,b,c三个字段,a,b有数据,c为空,我想将(a+b)/2插入到c中,请问只通过sql语句能做到吗,如果能该怎么写呢
完全可以!sql语句:update 表 set c = (a+b)/2
上图: