sqlStatistics
Syntax
Description
returns a table of statistics about a database table or an SQL query by using information
about the data source contained in databaseStats
= sqlStatistics(dataSourceInfo
,source
)dataSourceInfo
, which can be either
a connection object or a data source name. By default, sqlStatistics
returns the minimum and maximum values. source
contains the name of a
database table or an SQL query.
specifies additional options using one or more name-value arguments. For example, you can
return the unique values in a database column by specifying
databaseStats
= sqlStatistics(dataSourceInfo
,source
,Name=Value
)StatsInfo="uniquevalues"
.
Examples
Input Arguments
Name-Value Arguments
Output Arguments
Version History
Introduced in R2025a