方法一:
String insertStr = "insert into user_info(name,sex,age,psd,psd1)" + //user_info为数据库表名
" values(" + et1.getText() + "," + sex + "," + age + ","
+ et2.getText() + "," + et3.getText() +")";
database.execSQL(insertStr);
方法二:
final ContentValues values = new ContentValues();
values.put("name", "user"); //左字符串为表的属性,右字符串为对应的值
values.put("date", "2014-06-05");
values.put("pulse", "81");
values.put("HBP", "98");
values.put("LBP", "70");
values.put("no", "1");
database.insert("user_data", null, values); //user_data为数据库表名