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)"); }
public override void OnUpgrade(Android.Database.Sqlite.SQLiteDatabase db, int oldVersion, int newVersion) { db.ExecSQL("DROP TABLE IF EXISTS GolfScore"); OnCreate(db); }
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)"); }
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)"); }
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)"); }