示例#1
0
 public override void OnCreate(Android.Database.Sqlite.SQLiteDatabase db)
 {
     db.ExecSQL(@"CREATE TABLE IF NOT EXISTS Question (QuestionID INTEGER PRIMARY KEY AUTOINCREMENT," +
                "IMAGEID NOT NULL, QUESTIONSTRING VARCHAR(150) NOT NULL,CORRECTANSWER VARCHAR(150) NOT NULL," +
                "WRONGANSWER1 VARCHAR(100) NOT NULL,WRONGANSWER2 VARCHAR(100) NOT NULL,WRONGANSWER3 VARCHAR(100) NOT NULL," +
                "DATEENTERED varchar(30) NOT NULL)");
 }
示例#2
0
 public override void OnUpgrade(Android.Database.Sqlite.SQLiteDatabase db, int oldVersion, int newVersion)
 {
     db.ExecSQL("DROP TABLE IF EXISTS GolfScore");
     OnCreate(db);
 }
示例#3
0
 public override void OnCreate(Android.Database.Sqlite.SQLiteDatabase db)
 {
     db.ExecSQL(@"CREATE TABLE IF NOT EXISTS GolfScore (GolfID INTEGER PRIMARY KEY AUTOINCREMENT," +
                "ScoreDate varchar(30) NOT NULL, ScoreNumber NOT NULL, Rating double NOT NULL, Slope int not null)");
 }
示例#4
0
 public override void OnCreate(Android.Database.Sqlite.SQLiteDatabase db)
 {
     db.ExecSQL(@"CREATE TABLE IF NOT EXISTS QuizScore (ScoreID INTEGER PRIMARY KEY AUTOINCREMENT," +
                "ScoreDate varchar(30) NOT NULL, PlayerName varchar(10) NOT NULL, ScoreNumber NOT NULL)");
 }
示例#5
0
 public override void OnCreate(Android.Database.Sqlite.SQLiteDatabase db)
 {
     db.ExecSQL(@"CREATE TABLE IF NOT EXISTS Tweet (" +
                "TweetID INTEGER PRIMARY KEY AUTOINCREMENT, SOURCE VARCHAR(8000) NOT NULL)");
 }