1
我被查詢困住了。基本上,我想根據兩個條款,然後得到兩個相同領域的結果。 sum(field1)when(ins_n = 0)和sum(field1)when(ins_n = 1)。我希望我解釋一下。現在,我只能這樣做時(ins_n = 0)SQLite Select where where clause
"SELECT " +
"SUM(field1) AS incasso1, " +
"FROM Movimentinegozio WHERE ins_n = 0 ";
'選擇...其中ins_n在由ins_n'(0,1)組? –