IsInput (clsColumn)

[!附註]

  下一版的 Microsoft SQL Server 將不再提供此功能。請勿在新的開發工作中使用此功能,並且儘速修改使用此功能的應用程式。

The IsInput property of an object of ClassType clsColumn indicates whether the column can accept input values when carrying out predictions.

Data Type

Boolean

Access

Read/write

備註

A column can have both the IsInput and the IsPredictable properties set to True.

[!附註]

  All columns are considered as input columns when training a mining model unless they are disabled. It is only when predictions are carried out against a mining model that the notions of IsInput or IsPredictable have any meaning.

The value of the IsInput property can be related to other properties of the object, as well as properties of the parent object. Changing the property can also affect the properties of related objects, including parent objects.

For columns with a SubClassType of sbclsRegular, if the column is related to a column that is not a key column, the value of this property is equal to the value of the IsInput property of the related column. If the parent of the column is a clsColumn object (that is, the column is a child of a nested column) and the IsKey property is True, the value of this property is equal to the value of the IsInput property of the parent column. If the parent of the column is a clsMiningModel object and the IsKey property is True, the value of this property is False. If the IsParentKey property of this column is True, this property is False.

Changing the IsInput property to True for a column (other than a key column) whose parent is a clsColumn object (that is, the column is a child of a nested column) changes the IsInput property of the parent column to True.

For columns with a SubClassType of sbclsNested, changing the IsInput property to False changes the IsInput property for all child columns whose IsKey, IsParentKey, and IsRelated properties are all False.