POTENZA
Sintassi
%%{init: {
'theme': 'base',
'flowchart': { 'padding': '7', 'nodeSpacing': '20', 'rankSpacing': '20' },
'themeVariables': {
'fontSize': '11px',
'fontFamily': 'Arial'
}
}}%%
flowchart LR
Start((START)) --> POWER[POWER]:::quoted
POWER --> End((END))
Scopo
La funzione SQL POWER restituisce il valore di un numero elevato a un'altra potenza.
Parametri:
- Valore (
decimal): un numero. - Esponente (
decimal): un numero.
Risultati: il valore di un numero elevato a un altro.
Esempi
L'esempio seguente restituisce 2 elevato a 10:
select power(2, 10)
-------------------
1024
L'esempio seguente restituisce 9 elevato a 0.5, che è la radice quadrata di 9:
select power(9, 0.5)
-------------------
3