a±í: aid ascore *******************************************
b±í: bid bpei
********************************************
c±í: bid aid cscore
Âé·³¿ªÊ¼ÁË:ÈçºÎʵÏÖÕâ¸öupdate ascore += bpei * cscoreUPDATE C from C INNER JOIN A ON C.AID=A.AID INNER JOIN B ON C.BID=C.BID SET C.ascoreB.=bpei * A.cscore ascore += bpei * cscore£ºÀÛ¼Ó£¿+£½Ê²Ã´Òâ˼£¿ SQL code: update c inner jon a on c.aid=a.aid inner join b on c.bid=b.bid set c.ascore=c.ascore+a.cscore+b.bpei;
+= ÕâÊÇCÔËËã·û
x += y ==>> x = x + y UPDATE C from C INNER JOIN A ON C.AID=A.AID INNER JOIN B ON 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
ÎÒÒÔǰ°²×°ÁËÒ»´Î£¬ºóÀ´Ð¶ÔØÁË£¬ÏÖÔÚÔÙ°²×°µÄʱºò£¬Ìáʾ´íÎó£ºError 1305.Error reading from file C:DOCUME~1\LOCALS~1\Temp\mysql_server.msi.Verify that the file exists and that you can access it. ¿ ......
»·¾³£ºwin2003 apache2 resin3 php5 mysql5 mysql´íÎóÀï³öÏÖÕâ¸ö£¬·þÎñÆ÷Ö±½ÓËÀµ½ÄÇÀï¡£ InnoDB: The log sequence number in ibdata files does not match InnoDB: the log sequence number in the ib_log ......