注意引号:
错误:
mDbRead.query(WEBSITE_TABLE, new String[]{KEY_WEBNAME}, KEY_WEBURL + "=" + webURL, null, null, null, null);
正确:
mDbRead.query(WEBSITE_TABLE, new String[]{KEY_WEBNAME}, KEY_WEBURL + "='" + webURL + "'", null, null, null, null);
注意空格:
return mDbRead.query(ACCOUNT_TABLE, null,
KEY_WEBURL + "='" + webURL + "'" + " " + "AND" + " " +
KEY_USERNAME + "='" + username + "'", null, null, null, null);
Java null String: