sql - Issue with join and sum in mysql query: invalid use of group function -


मेरे पास यह अपडेट क्वेरी है:

  खाता अद्यतन INNER c1 पर शामिल करें c1.user = Account.u_id SET account.amount = account.amount + sum (c1.total_1) जहां t_ype = 8   

लेकिन यह समूह समारोह का अमान्य उपयोग देता है ... मेरी गलती कहाँ है? < / p>

आपको जुड़ना से पहले एकत्रीकरण करने की आवश्यकता है: < प्री> खाता अद्यतन करें INNER (चयन करें c1.user, sum (c1.total_1) के रूप में सी 1 ग्रुप से c1.user द्वारा) सी 1 पर c1.user = account.u_id SET account.amount = account.amount + sumc WHERE account.t_ype = 8;

Comments

Popular posts from this blog

php - PDO bindParam() fatal error -

logging - How can I log both the Request.InputStream and Response.OutputStream traffic in my ASP.NET MVC3 Application for specific Actions? -

java - Why my included JSP file won't get processed correctly? -