I am using python 2.7
with sqlite
.
Can anyone tell me how to add GROUP BY coulmn
in this query.
cur.execute("SELECT `column1`,`column2` FROM `table` WHERE `name`=?",(name,))
答案 0 :(得分:1)
cur.execute("SELECT `column1`,`column2` FROM `table` WHERE `name`=? GROUP BY `column`",(name,) )