title: Inline BLOB / BINARY data types in SQL / JDBC
body: <p>Let's say I want to avoid using bind variables in JDBC and run SQL using "ad-hoc" statements, e.g:</p>
  
  <pre><code>connection.createStatement().executeQuery("SELECT ...");
  </code></pre>
  
  <p>Is there any convention / JDBC escape syntax to inline BLOB data types? I know that <a href="http://www.h2database.com/html/grammar.html#bytes">H2 has this syntax</a>:</p>
  
  <pre><code>INSERT INTO lob_table VALUES (X'01FF');
  </code></pre>
  
  <p>But that's not a standard. Any general solutions? Note, I'm interested in a general approach. I know that this can turn out to be terribly inefficient.</p>