添加数据库的方法:
db.execSQL("insert into Book (name,author,pages,price) values(?,?,?,?)",new String[]{"Jane Success","Jane Zhong","555","165"});
更新数据的方法:
db.execSQL("update Book set price=? where name=?",new String[]{"10.9","La la land"});
删除数据的方法:
db.execSQL("delete from Book where pages > ?",new String[]{"500"});
查询数据的方法:
db.rawQuery("select * from Book",null);