为什么不起作用?
db.execsql(“ INSERT INTO PARTIES(PARTY_NAME,PARTY_COUNT)SELECT DISTINCT(PARTY),COUNT(PARTY)FROM?WHERE(Year =?)GROUP BY PARTY ORDER BY PARTY ASC”,新的Object [] {“ Election”,“ 2004“});
它在rawQuery中完美工作!!
最佳答案
为什么不起作用?
db.execsql(“ INSERT INTO PARTIES(PARTY_NAME,PARTY_COUNT)SELECT DISTINCT(PARTY),COUNT(PARTY)FROM?WHERE(Year =?)GROUP BY PARTY ORDER BY PARTY ASC”,新的Object [] {“ Election”,“ 2004“});
它在rawQuery中完美工作!!