您现在的位置: 万盛学电脑网 >> 程序编程 >> 网络编程 >> 安卓开发 >> 正文

android创建数据库表的方法

作者:佚名    责任编辑:admin    更新时间:2022-06-22

欢迎大家在这里学习android创建数据库表!下面是我们给大家整理出来的精彩内容。希望大家在这里学习!

  1.   /**
  2.      * Called at the time to create the DB.
  3.      * The create DB statement
  4.      * @param the SQLite DB
  5.      */
  6.     @Override
  7.     public void onCreate(SQLiteDatabase db) {
  8.         db.execSQL(
  9.                 "create table " + TABLE_NAME + " (_id integer primary key autoincrement, 
  10. " + " fid text not null, name text not null) ");
  11.     }

好了,android创建数据库表内容就给大家介绍到这里了。希望大家继续关注我们的网站!

相关推荐:

android清单的使用方法