code_junkie

How do you handle BLOB and numerical data efficiently in database communication?

Nov 11th, 2011
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. SELECT foo FROM bar WHERE baz IN (23, 34, 45, 9854004, ...)
  2.  
  3. stmt = conn.Prepare("SELECT * FROM TABLE where x in (?, ?, ?)");
  4. stmt.SetInt(0, x);
  5. stmt.SetInt(1, y);
  6. stmt.SetInt(2, z);
Add Comment
Please, Sign In to add comment