我正在使用android监控应用程序,并且必须显示最近两天的数据记录,我该如何进行?
日期表的类型为 TEXT
我的SQLITE TABLE流量代码
private static final String tableTrafic ="CREATE TABLE "+
TraficEntry.TABLE_NAME + " ( "
+TraficEntry.COL_ID + " INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT
, "
+TraficEntry.COL_IN + " DOUBLE , "
+TraficEntry.COL_OUT + " DOUBLE , "
+TraficEntry.COL_STARTIME + " TEXT , "
+TraficEntry.COL_ENDTIME + " TEXT "
+"); ";