CI_DB_query_builder::distinct()

distinct([$val = TRUE])

Parameters:
  • $val (bool) – Desired value of the “distinct” flag
Returns:

CI_DB_query_builder instance (method chaining)

Return type:

CI_DB_query_builder

Sets a flag which tells the query builder to add a DISTINCT clause to the SELECT portion of the query.

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

Please login to continue.