我想查詢過去30分鐘內的記錄。如何查詢顯示時間不超過30分鐘的記錄
String CREATE_FOJ_TABLE = "CREATE TABLE " + TABLE_FOJ
+ "(" + KEY_FOJID + " INTEGER PRIMARY KEY," + KEY_FOJPICKUPPOINT
+ " TEXT," + KEY_FOJDESTINATION + " TEXT," + KEY_FOJPICKUPTIME
+ KEY_FOJFARES + " TEXT," +
KEY_FOJSPECIAL
+ " TEXT," +KEY_FOJVIA +
" TEXT," + KEY_FOJMILAGE
+ " TEXT" + ")";
//////// this is my query //////////////
String selectQuery = "SELECT * FROM " + TABLE_FOJ +" ORDER BY "+
KEY_FOJPICKUPTIME;
如何讓時間beofre 30分鐘??????? – user3472001
什麼時間格式你在哪列? – Saqib
即時通訊使用文本日期時間KEY_FOJPICKUPPOINT \t \t \t \t +「TEXT」 – user3472001