title: sqlite via c++, opening multiple sqlite files
body: <p>How do I connect multiple sqlite files into a single sqlite3* handle, in C/C++?  I'm thinking it's possible considering there's a command called ATTACH, but do not know how to do so in C++.  Thanks in advance.</p>
  
  <p>Answer (thanks to Robert)</p>
  
  <pre><code>sqlite3_exec(db, "ATTACH 'C:/tmp/tmp.sqlite' as mytmp");
  </code></pre>