Function Reference / query – ezSQL

ezSql Query is an underlying basic method of ezSql Class to run any query which is not handled by existing ezSql methods. This function can be used to run SQL queries like insert, delete, update, replace, truncate, drop or create.

Description

query is an underlying basic method of ezSql Class to run any query which is not handled by existing ezSql methods of get_results, get_row, get_var. This function can be used to run SQL queries like insert, delete, update, replace, truncate, drop or create.

Format

Parameters

$query (required)

(string) The query you want to run.

 

Usage

Returns

This function returns the number of rows affected by the query.