Skip to content

berry.mysql.MySQLCommand

Nikos Siatras edited this page Sep 30, 2022 · 12 revisions

MySQLCommand represents a Transact-SQL statement or stored procedure to execute against a MySQL Server database.

public function __construct(MySQLConnection $mySQLConnection, String $query = "")

Examples

The following example creates a MySQLConnection, a MySQLCommand, and a MySQLReader. The example reads through the data, printing it to the HTML output. Finally, the example closes the MySQLReader and then the MySQLConnection as it exits.

Clone this wiki locally