CI_DB_query_builder::select_avg()

select_avg([$select = ''[, $alias = '']])

Parameters:
  • $select (string) – Field to compute the average of
  • $alias (string) – Alias for the resulting value name
Returns:

CI_DB_query_builder instance (method chaining)

Return type:

CI_DB_query_builder

Adds a SELECT AVG(field) clause to a query.

doc_CodeIgniter
2016-10-15 16:31:20
Comments
Leave a Comment

Please login to continue.