我有下表:
CREATE TABLE ta91 (
id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
date INTEGER,
_520 INTEGER,
_530 INTEGER,
_540 INTEGER,
_550 INTEGER,
_560 INTEGER,
_570 INTEGER,
_580 INTEGER,
_590 INTEGER,
_600 INTEGER,
_610 INTEGER,
_620 INTEGER,
_630 INTEGER,
_640 INTEGER,
_650 INTEGER,
_660 INTEGER,
_670 INTEGER,
_680 INTEGER,
_690 INTEGER,
_700 INTEGER,
_710 INTEGER,
_720 INTEGER,
_730 INTEGER,
_740 INTEGER,
_750 INTEGER,
_760 INTEGER,
_770 INTEGER,
_780 INTEGER,
_790 INTEGER,
_800 INTEGER,
_810 INTEGER,
_820 INTEGER,
_830 INTEGER,
_840 INTEGER,
_850 INTEGER
)
具有以下值:
INSERT INTO "someTable" VALUES ("10","1355480306018","1","0","0","0","0","1","0","0","0","0","1","1","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0");
INSERT INTO "someTable" VALUES ("11","1355480307044","1","0","0","0","0","0","0","0","1","0","0","0","1","0","0","0","0","0","1","1","1","1","0","0","0","0","0","0","0","0","0","0","0","0");
INSERT INTO "someTable" VALUES ("12","1355480308027","1","0","0","0","0","0","0","0","1","0","0","0","1","0","0","0","0","0","1","1","1","1","0","0","0","0","0","0","0","0","0","0","0","0");
INSERT INTO "someTable" VALUES ("13","1355480309033","1","0","0","0","0","1","0","0","0","0","1","1","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0");
INSERT INTO "someTable" VALUES ("14","1355480310038","1","0","0","0","0","1","0","0","0","0","1","1","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0");
INSERT INTO "someTable" VALUES ("15","1355480311043","1","0","0","0","0","0","0","0","1","0","0","0","1","0","0","0","0","0","1","1","1","1","0","0","0","0","0","0","0","0","0","0","0","0");
INSERT INTO "someTable" VALUES ("16","1355480312043","1","0","0","0","0","0","0","0","1","0","0","0","1","0","0","0","0","0","1","1","1","1","0","0","0","0","0","0","0","0","0","0","0","0");
INSERT INTO "someTable" VALUES ("17","1355480313048","1","0","0","0","0","1","0","0","0","0","1","1","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0");
我如何计算值从 0/1 切换的次数。1/0 直接在 sql 中的每一列?
我正在使用带有 System.Data.SQLite.dll 1.0.82.0 的 c# 来访问数据库