Skip to content

Commit

Permalink
实验五
Browse files Browse the repository at this point in the history
hzuapps#91 hzuapps#257 内部存储,将产生的记录存到手机
  • Loading branch information
DUDUfine committed Jun 16, 2016
1 parent c159e5f commit 95247f9
Showing 1 changed file with 1 addition and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,10 @@ public void onCreate(SQLiteDatabase db){// 创建数据库后,对数据库的
// db=openOrCreateDatabase("myaccount.db", Context.MODE_PRIVATE, null);
db.execSQL("DROP TABLE IF EXISTS Account");//创建account表
String sql="create table Account(_id integer primary key autoincrement,result TEXT,comsumedate timestamp not null default CURRENT_TIMESTAMP)";
//String sql="create table Account(_id integer primary key autoincrement,AccordType TEXT,AccordContent TEXT,Comsumedate timestamp not null default CURRENT_TIMESTAMP,Money TEXT)";

db.execSQL(sql);

}
// public long insert(String AccordName,String AccordContent,String Comsumedate )
// {
// SQLiteDatabase db=this.getWritableDatabase();
// ContentValues cv=new ContentValues();
// cv.put("AccordName", AccordName);
// cv.put("AccordName", AccordName);
// cv.put("AccordName", AccordName);
// long row;
//// db.insert(TABLE_NAME, null, cv);
// return row;
// }


@Override
Expand Down

0 comments on commit 95247f9

Please sign in to comment.