當我使用mysql我得到這個錯誤,請任何人都可以解釋我這個。 A,B,C之間有什麼不同?不同羣體之間()和羣組由
A) select * from table where a=a group by(b) // this execute & work fine
B) select * from table where a=a group by b,c // this execute * work fine
c) select * from table where a=a group by (b,c) // this is giving an error - error is operand should contain 1 column.
在它正常工作與出與支架錯誤A,但是當我用同樣的方法用C多分組它不工作,並給出提到的錯誤。
這是爲什麼? ()& group by在mysql分組中有什麼不同?
謝謝。
沒有錯誤解釋「操作數應該包含1列」。這意味着如果我使用group by(b,c),這意味着mysql標識了b和c是兩列。但它說如果我使用(),它不能按兩列分組。那就是我的問題是,爲什麼發生這種情況? – maXfenda