title: PostgresSql : error: syntax error at or near "?"
body: <p>when I try to run the below code , I get &quot;error: syntax error at or near &quot;?&quot;&quot;. what
  is this error and how can I get rid of this error?</p>
  <pre><code>    let sql = 'INSERT INTO appointments(from_date,meeting_completed,meeting_description,to_date,from_time,to_time,agenda) VALUES ?'
  let post = {
      from_date: req.body.fromdate,
      meeting_completed: req.body.meetingcompleted,
      meeting_description: req.body.meetingdescription,
      to_date: req.body.todate,
      from_time: req.body.fromtime,
      to_time: req.body.totime,
      agenda: req.body.agenda,
  }
  var pool = new Pool({
      host: process.env.DATABASE_HOST,
      user: process.env.DATABASE_USERNAME,
      password: process.env.DATABASE_PASSWORD,
      database: process.env.DATABASE,
      port: 5432,
      // idleTimeoutMillis: 0,
      // connectionTimeoutMillis: 0,
  });
  
  pool.query(sql, [post], (error, results) =&gt; {
      if (error) {
          console.log(&quot;ERROR&quot;, error)
      }
      res.status(201).send(`User added with ID`)
  })
  </code></pre>