1 # pq\Result pq\Connection::exec(string $query)
3 [Execute one or multiple SQL queries](pq/Connection/: Executing Queries) on the connection.
6 > Only the last result will be returned, if the query string contains more than one SQL query.
12 The queries to send to the server, separated by semi-colon.
20 * pq\Exception\InvalidArgumentException
21 * pq\Exception\BadMethodCallException
22 * pq\Exception\RuntimeException
23 * pq\Exception\DomainException
30 $connection = new pq\Connection;
31 $result = $connection->exec("SELECT 1");