本文整理汇总了C#中Android.ExecSQL方法的典型用法代码示例。如果您正苦于以下问题:C# Android.ExecSQL方法的具体用法?C# Android.ExecSQL怎么用?C# Android.ExecSQL使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Android
的用法示例。
在下文中一共展示了Android.ExecSQL方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: OnCreate
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: OnUpgrade
public override void OnUpgrade(Android.Database.Sqlite.SQLiteDatabase db, int oldVersion, int newVersion)
{
db.ExecSQL ("DROP TABLE IF EXISTS QuizScore");
OnCreate (db);
}
示例3: OnCreate
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)");
}
示例4: OnCreate
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)");
}
示例5: OnCreate
public override void OnCreate(Android.Database.Sqlite.SQLiteDatabase db)
{
db.ExecSQL (@"CREATE TABLE IF NOT EXISTS Station (StationID INTEGER PRIMARY KEY AUTOINCREMENT, " +
"ID VARCHAR(50) NOT NULL, LocationX VARCHAR(15) NOT NULL, LocationY VARCHAR(15) NOT NULL," +
"Name VARCHAR(50) NOT NULL, Standardname VARCHAR(50) NOT NULL)");
}
示例6: OnCreate
public override void OnCreate(Android.Database.Sqlite.SQLiteDatabase db)
{
db.ExecSQL (@"CREATE TABLE IF NOT EXISTS CONNECTION (CONNECTIONID INTEGER PRIMARY KEY AUTOINCREMENT, " +
"ID VARCHAR(20) NOT NULL, SOURCE VARCHAR(8000) NOT NULL)");
}