当前位置: 首页>>代码示例>>C#>>正文


C# Android.ExecSQL方法代码示例

本文整理汇总了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)");
 }
开发者ID:bny-mobile,项目名称:QuizData,代码行数:7,代码来源:QuestionHelper.cs

示例2: OnUpgrade

        public override void OnUpgrade(Android.Database.Sqlite.SQLiteDatabase db, int oldVersion, int newVersion)
        {
            db.ExecSQL ("DROP TABLE IF EXISTS QuizScore");

            OnCreate (db);
        }
开发者ID:bny-mobile,项目名称:QuizData,代码行数:6,代码来源:ScoreHelper.cs

示例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)");
 }
开发者ID:bny-mobile,项目名称:QuizData,代码行数:5,代码来源:ScoreHelper.cs

示例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)");
 }
开发者ID:troyscott,项目名称:DroidDb,代码行数:5,代码来源:DBHelper.cs

示例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)");
 }
开发者ID:bny-mobile,项目名称:COPILOT,代码行数:6,代码来源:StationHelper.cs

示例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)");
 }
开发者ID:bny-mobile,项目名称:COPILOT,代码行数:5,代码来源:ConnectionHelper.cs


注:本文中的Android.ExecSQL方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。