我不知道如何在 Android 中验证 SQLite 命令...当我有该代码时:
final String CREATE_TABLE_USER =
"CREATE TABLE tbl_user ("
+ "id INTEGER PRIMARY KEY AUTOINCREMENT,"
+ "username VARCHAR(20));";
db.execSQL(CREATE_TABLE_USER);
我喜欢检查“已创建”:
if (tbl_user has been created)
我该怎么写?Eclipse 说我无法将 void 转换为布尔值...