title: Use of sqlite3_exec
body: <p>I have the next SQLITE3 commands that generates a file with more than 60 million records:</p>
  
  <pre><code>.mode csv
  .output matppp.csv
  select mat, ppp from matppp order by mat;
  .output stdout
  </code></pre>
  
  <p>How can I include these commands into a C program using:</p>
  
  <pre><code> sqlite3_exec(db, "..........", NULL, 0, &amp;db_err); 
  </code></pre>
  
  <p>?</p>
  
  <p>When I attempt to do it myself, the c program generates an expression error when executing.</p>
  
  <p>Thanks!!</p>