Skip to content

Commit

Permalink
hzuapps#5 hzuapps#40 第五次作业
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangdixi committed Jun 16, 2017
1 parent 3420c3b commit 68a831a
Showing 1 changed file with 30 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
package edu.hzuapps.androidlabs.homeworks.net1414080903105;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

/**
* Created by Administrator on 2017/6/16.
*/

public class Net1414080903105MySqlOpenHelper extends SQLiteOpenHelper {
public Net1414080903105MySqlOpenHelper(Context context) {
super(context, "football", null, 1);
}

@Override
public void onCreate(SQLiteDatabase db) {
db.execSQL("create table info(" +
"name varchar(20)," +
"age integer," +
"height double," +
"weight double," +
"nation varchar(20));");
}

@Override
public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {

}
}

0 comments on commit 68a831a

Please sign in to comment.