-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #408 from vwuyang/master
- Loading branch information
Showing
3 changed files
with
30 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
...va/edu/hzuapps/androidlabs/homeworks/net1414080903139/Net1414080903139MySQLiteHelper.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package edu.hzuapps.andridlabs.homeworks.net1414080903139; | ||
|
||
import android.content.Context; | ||
import android.database.sqlite.SQLiteDatabase; | ||
import android.database.sqlite.SQLiteOpenHelper; | ||
|
||
/** | ||
* Created by 阳飞 on 2017/4/29. | ||
*/ | ||
|
||
public class Net1414080903139MySQLiteHelper extends SQLiteOpenHelper { | ||
|
||
public Net1414080903139MySQLiteHelper(Context context) { | ||
super(context, "birthday", null, 1); | ||
} | ||
|
||
@Override | ||
public void onCreate(SQLiteDatabase sqLiteDatabase) { | ||
sqLiteDatabase.execSQL("create table birthday(name varchar(20),birthday varchar(20));"); | ||
} | ||
|
||
@Override | ||
public void onUpgrade(SQLiteDatabase sqLiteDatabase, int i, int i1) { | ||
|
||
} | ||
} |