Aracılığıyla paylaş


Güç (SSIS ifade)

Yükseltme sonucunu döndüren bir sayısal ifade için bir güç.Güç parametre tamsayı olarak değerlendirilmelidir.

Sözdizimi

POWER(numeric_expression,power)

Bağımsız değişkenler

  • numeric_expression
    Geçerli bir sayısal ifade iş.

  • power
    Geçerli bir sayısal ifade iş.

Sonuç türleri

DT_R8

Açıklamalar

The numeric_expression and power arguments are cast to the DT_R8 data type before the power is computed.Daha fazla bilgi için bkz: Tümleştirme Hizmetleri veri türleri.

If numeric_expression evaluates to zero and power is negative, the expression evaluator returns an error and sets the return result to null.

If numeric_expression or power evaluate to indeterminate results, the return result is null.

The power argument can be a fraction.Örneğin, değer 0,5 güç kullanabilirsiniz.

Örnekler

Bu örnek, bir sayısal hazır bilgi kullanır.işlev, 4'e 3 gücünü yükseltir ve 64 döndürür.

POWER(4,3)

Bu örnek kullanır uzunluğu sütun ve DimensionCount değişkeni.If Length is 8, and DimensionCount is 2, the return result is 64.

POWER(Length, @DimensionCount) 

Ayrıca bkz.

Diğer Kaynaklar