title: User defined variables in PostgreSQL
body: <p>I have the following MySQL script which I want to implement in PostgreSQL.</p>
  
  <pre><code> SET @statement = search_address_query;
        PREPARE dynquery FROM @statement;
        EXECUTE dynquery;
        DEALLOCATE PREPARE dynquery;
  </code></pre>
  
  <p>How can I define user defined variable "@statement" using PostgreSQL.</p>