title: How do I convert an integer to string as part of a PostgreSQL query?
body: <p>How do I convert an integer to string as part of a PostgreSQL query?</p>
  
  <p>So, for example, I need:</p>
  
  <pre><code>SELECT * FROM table WHERE &lt;some integer&gt; = 'string of numbers'
  </code></pre>
  
  <p>where <code>&lt;some integer&gt;</code> can be anywhere from 1 to 15 digits long.</p>