! (Mantıksal değil) (SSIS ifade)
Bir Boole işlenen olumsuzlar.
Not
The !operator cannot be used in conjunction with other operators.For example, you cannot combine the !and the > operators into the !>.operator.
Sözdizimi
!boolean_expression
Bağımsız değişkenler
- boolean_expression
Herhangi bir geçerli ifade Boole olarak değerlendirir.Daha fazla bilgi için bkz: Tümleştirme Hizmetleri veri türleri.
Sonuç türleri
DT_BOOL
Açıklamalar
The following table shows the result of the !operation.
ÖzgünBoole ifade |
After applying the !operator |
---|---|
TRUE |
FALSE |
NULL |
NULL |
FALSE |
TRUE |
Örnekler
Bu örnek yanlış Eğer değerlendiren renk sütun değeri "Kırmızı".
!(Color == "red")
Bu örnek için true Eğer değeri değerlendiren MonthNumber değişken aynıdır geçerli ayı gösteren tamsayı.Daha fazla bilgi için bkz: Ay (SSIS ifade) ve getdate (SSIS ifade).
!(@MonthNumber != MONTH(GETDATE())
Ayrıca bkz.