0
我卡在此查詢特定值...集團按列名 - >在該列
SELECT SUM(points) AS total FROM `library` AS lib JOIN subitem_lib AS subitem on lib.id = subitem.lid JOIN items AS item on subitem.iid = item.id group by item.pid
是否有可能獲得來自item.pid特定字段的值? 此列可以有不同的值(1 - > 9999999 ...)
我得到這個頁面呈現與PHP哪裏它給了我一個項目ID(PID)。現在,我的人數應該得到該項目的具體分數。
任何幫助,非常感謝。
'WHERE item.pid = yourpidvaluehere'? – Lamak 2015-02-10 13:46:05
添加'where item.pid = XXX'? – 2015-02-10 13:46:11
確實..那是一個愚蠢的問題tbh。感謝您的幫助 – 2015-02-10 13:58:58