db.execSQL(“update student set id = 1111111 where name=‘张三’”);
执行查询操作,调用SQLiteDatabase中的rawQuery()方法,第一个参数时sql语句,第二个参数为null
db.rawQuery(“select * from student”, null);
=========================================================================
直接下载后打开,傻瓜式安装
打开SQLiteStudio,点击菜单栏中的Tools->open cofiguration dialog,选中Plugins(插件),选中Android SQLite,点击OK
插件添加完成后,再点击Tools->Get Android connector Jar File,导出jar包放入项目中的libs文件夹。
在SQLiteStudio中连接手机上项目的数据库,在菜单栏中选择Database->Add a database
运行程序,SQLiteStudio可调试数据库的数据
=================================================================
主页面:
点击创建数据库,Log打印日志