title: getting specific index from sql
body: <p>I'm trying to pull from my sql database without having to load it into a var and pulling the items I want with a for loop. </p>
  
  <p>How can I get the 5 items in the 5th index
  "               " 5 "          " 10th index...</p>
  
  <p>This is what I'm doing not it's way to hackish. </p>
  
  <pre><code>function get_db(a) {
   index_count=a
  
   db.transaction(
    function(tx) {
  
    var rs = tx.executeSql('SELECT * FROM Greeting');
    var r=""
  
    if (up_check === 0){
        index_count = index_count +4
          }
          r += rs.rows.item(index_count).salutation + ": " + rs.rows.item(index_count).salutee + "\t\t"
     })
  return r
  }
  </code></pre>
  
  <p>I'd ideally want to get something like</p>
  
  <pre><code>var rs = tx.executeSql('SELECT * FROM index_count (and the next for items) Greeting');
  </code></pre>