Method Sql.mysql()->big_query()
- Method big_query
Resultbig_query(stringquery,mapping(string|int:mixed)|voidbindings,void|stringcharset)- Description
Sends a query to the server.
- Parameter
query The SQL query.
- Parameter
bindings An optional bindings mapping. See Sql.query for details about this.
- Parameter
charset An optional charset that will be used temporarily while sending
queryto the server. If necessary, a querySET character_set_client=charsetis sent to the server first, then
queryis sent as-is, and then the connection charset is restored again (if necessary).Primarily useful with
charsetset to"latin1"if unicode encode mode (see set_unicode_encode_mode) is enabled (the default) and you have some large queries (typically blob inserts) where you want to avoid the query parsing overhead.- Returns
A Result object is returned if the query is of a kind that returns a result. Zero is returned otherwise.
The individual fields are returned as strings except for NULL, which is returned as UNDEFINED.
- See also