title: Inserting array values
body: <p>How do I write and execute a query which inserts array values using libpqxx?</p>
  
  <pre><code>INSERT INTO exampleTable(exampleArray[3]) VALUES('{1, 2, 3}');
  </code></pre>
  
  <p>This example code gives me:</p>
  
  <pre><code>ERROR:  syntax error at or near "'"
  </code></pre>
  
  <p>What is wrong? In PostgreSQL documentation I found that:</p>
  
  <pre><code>CREATE TABLE sal_emp (
  name            text,
  pay_by_quarter  integer[],
  schedule        text[][]
  ); 
  </code></pre>
  
  <p>...</p>
  
  <pre><code>INSERT INTO sal_emp
  VALUES ('Bill',
  '{10000, 10000, 10000, 10000}',
  '{{"meeting", "lunch"}, {"training", "presentation"}}');
  </code></pre>