首页 新闻 会员 周边 捐助

android菜鸟关于数据库操作求解

0
悬赏园豆:5 [已关闭问题] 关闭于 2012-03-02 09:25

public void onCreate(SQLiteDatabase db) {   

  db.execSQL("CREATE TABLE Button(Id integer NOT NULL PRIMARY KEY UNIQUE,name text," +     "parentId integer,typeId integer,CMD1 text,CMD2 text,CMD3 text,CMD1Status integer," +     "CMD2Status integer,CMD3Status integer,CMD1Id integer,CMD2Id integer,CMD3Id integer," +     "CMD1Param integer,CMD2Param integer,CMD3Param integer,IsDimmer integer DEFAULT 0," +     "openState integer DEFAULT 0,BtnType integer)");

 }

我的创建语句不对么?怎么执行查询的时候报错数据不存在?E/AndroidRuntime(387): Caused by: android.database.sqlite.SQLiteException: no such table: Button: ,

堕落为妖精的主页 堕落为妖精 | 初学一级 | 园豆:76
提问于:2012-03-01 11:57
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册