title: How to use array variable in PostgreSQL array_append()?
body: <p>I would like to use array variable in PostgreSQL  <strong>array_append()</strong>. If I use array directly then its works but not when using variable.</p>
  
  <pre><code>  $name= {1,2,3};
    $Name_key_array={4};
  </code></pre>
  
  <p>I would like to find result by using following way-</p>
  
  <pre><code>  $name='array_append(name, $Name_key_array)';
  </code></pre>
  
  <p>or </p>
  
  <pre><code>  "SELECT array_append($Books-&gt;name, $Name_key_array) as b";
  </code></pre>
  
  <p>Waiting to see some great ideas.</p>
  
  <p>Thanks to all</p>