Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
以百分比的形式返回选择性估计,该百分比由查询优化程序根据指定的参数计算得出。
EXPERIENCE_ESTIMATE( column-name [, value [, relation-string ] ] )
column-name 要调查的列的名称。
value 要与列进行比较的值。
relation-string 用于比较的比较运算符。此参数可接受的值为:'=' , '>' , '<'、'>='、'<='、'<>'、'!='、'!<' 和 '!>'。缺省值为 '='。
REAL
如果 value 为 NULL,则关系字符串 = 和 != 将分别被解释为 IS NULL 和 IS NOT NULL 条件。
SQL/2008 服务商扩充。
下面的语句返回 NULL。
SELECT DISTINCT EXPERIENCE_ESTIMATE( EmployeeID, 200, '>' ) FROM Employees;