title: Search for a specific string in an SQLite database - Android SDK
body: <p>I'm using an SQLite database in Android SDK and I know this is a very simple question but I have the following function below. I'm trying to search for if a username is within the SQL database but I cant think of how I would structure the query.</p>
  <p>What would be the proper way to search for the if the string &quot;user&quot; is within the table &quot;ACCOUNT_TABLE&quot;</p>
  <pre><code>public boolean isUser(String user){
          SQLiteDatabase db = this.getReadableDatabase();
          String queryString = &quot;SELECT &quot; + COLUMN_USERNAME + &quot; FROM &quot; + ACCOUNT_TABLE + &quot; WHERE &quot; (???);
  
          db.close();
          /*if(found in database) 
              return true;
          else 
              return false;*/
      }
  </code></pre>