CI_DB_query_builder::select_sum()

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

Parameters:
  • $select (string) – Field to compute the sum 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 SUM(field) clause to a query.

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

Please login to continue.