3个表 a表:
aid
ascore
******************************************* b表:
bid
bpei ******************************************** c表:
bid
aid
cscore 麻烦开始了:如何实现这个update
ascore += bpei * cscore
aid
ascore
******************************************* b表:
bid
bpei ******************************************** c表:
bid
aid
cscore 麻烦开始了:如何实现这个update
ascore += bpei * cscore
解决方案 »
- 谁知道像豆丁,doc88 网站内容搜索是怎么实现的啊?
- mysql 远程连接的问题
- 一个SQL语句中可以同时使用几个from吗
- mysql一个表的分区文件丢失
- mysql 3.23 like 问题
- mysql中select count(id)效率是不是比select count(*)高啊?
- 保存数据遇到的问题,求高手!!!
- 一个简单的问题,如何在Mysql里建立一个数据库?第一次用。
- create table as select from 能不能跨服务器?
- linux下的MySQL数据库导出来以后不能倒入NT下的MySQL数据库,请问如何解决?
- asp网页中的sql语句中的字段数据类型的转换是用哪个函数?
- 200万数据的分页问题
SET C.ascoreB.=bpei * A.cscore
set c.ascore=c.ascore+a.cscore+b.bpei;
+= 这是C运算符x += y ==>> x = x + y
set c.ascore=c.ascore+a.cscore+b.bpei
where c.aid=a.aid and c.bid=b.bid
SET C.ascore= C.ascore+b.bpei * c.cscore
这个语句有问题
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to