我这样做:
DatabaseHelper dbHelper = new DatabaseHelper(context);
dbHelper.getWritableDatabase();
String sql = "insert into "+getTableName()+("+DatabaseHelper.PRODUCT_MARK+",
"+DatabaseHelper.PRODUCT_NAME+")
VALUES ('"+input.getMark()+"','"+input.getName()+"')";
System.out.println(sql);
getDatabase().execSQL(sql);
dbHelper.close();
系统打印
12-14 16:53:33.857: I/System.out(1350): insert into product (pMark,name)
VALUES ('aaaaa ','zz')
但是,当我从 db 中读取属性标记时,该属性标记没有被评估……我的错误在哪里?