title: Multiple arguments in sqllite in flutter
body: <p>I would like to know how to pass multiple arguments to a raw query in sqllite.</p>
  
  <p>My code is below</p>
  
  <pre><code>query() async {
  
      // get a reference to the database
      Database db = await DatabaseHelper.instance.database;
  
      // raw query
      List&lt;Map&gt; result = await db.rawQuery('SELECT * FROM my_table WHERE name=?', ['Peter']);
  
      // print the results
      result.forEach((row) =&gt; print(row));
  
    }
  
  </code></pre>
  
  <p>In the above code i am passing one argument 'Peter' but what if I want to pass multiple arguments, for example:</p>
  
  <pre><code>   List&lt;Map&gt; result = await db.rawQuery('SELECT * FROM my_table WHERE name=? and last_name=? and year=?', ['Peter'], ['Smith'],[2019]);
  </code></pre>
  
  <p>If I do the code above, I get error "Too many positional arguments: 2 expected, but 4 found."  can someone show me how to pass multiple arguments to a query in sqllite flutter?</p>