DatabaseSelectDistinct Method (String, IEnumerableString, ActionQuery, String) |
Select distinct data from a table.
This is a short cut method that creates an update query and then uses the
, distinct ,table, get, where and exec methods of the
query.
Namespace:
DataTables
Assembly:
DataTables (in DataTables.dll) Version: 1.6.5.0 (1.6.5.0)
Syntax public Result SelectDistinct(
string table,
IEnumerable<string> field = null,
Action<Query> where = null,
string orderBy = null
)
Parameters
- table
- Type: SystemString
Table name to act upon - field (Optional)
- Type: System.Collections.GenericIEnumerableString
Collection of field names to get. If null all fields are returned - where (Optional)
- Type: SystemActionQuery
Where condition for what to select - orderBy (Optional)
- Type: SystemString
Order by condition
Return Value
Type:
ResultResult instance
See Also