Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个sqlite数据库,其中有几行和几列,一列包含日期和时间。我必须根据该日期和时间列的升序重新排列整个数据库这怎么可能?
"select * from " + DB_TABLE + " order by " + KEY_DATE + " asc";
那会做的!
Cursor cursor = this.db.query(TABLE_NAME_2, new String[] { "empid,username,emp_date,imagepath"}, null , null, null, null, "empid asc");
你也可以给empid descempid 的降序..
empid desc