Using Indicator VariablesPrograms can use indicator variables along with input and output host variables. With input host variables, programs can insert a NULL value by setting the indicator variable is set to -1. With output variables, programs check indicator variables for NULL values and other error conditions. The value of an indicator variable is interpreted as given below:
When a query is made, it is suggested that an indicator variable be used to check for NULL values, on columns that can contain NULL values. |
|||||||||