---
title: "LN"
description: "LN SQL \uD568\uC218\uB294 \uC22B\uC790\uC758 \uC790\uC5F0\uB85C\uADF8\uB97C \uAD6C\uD569\uB2C8\uB2E4."
language: ko
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/ko/docs/invantive-universalsql/grammar/sql-functions/ln
original: https://documentation.invantive.eu/en/docs/invantive-universalsql/grammar/sql-functions/ln
updated: 2026-12-04T13:54:59Z
license: https://documentation.invantive.eu/ko/
---

## 구문
```mermaid
%%{init: {
  'theme': 'base',
  'flowchart': { 'padding': '7', 'nodeSpacing': '20', 'rankSpacing': '20' },
  'themeVariables': {
    'fontSize': '11px',
    'fontFamily': 'Arial'
  }
}}%%
flowchart LR
    Start((START)) --> LN[LN]:::quoted
    LN --> End((END))
```

## 목적
`LN` SQL 함수는 숫자의 자연로그를 구합니다. [[LOG]]과 달리 밑을 지정할 수 없으며, 밑은 항상 숫자 `e`입니다.

[[LOG]] 및 [[EXP]]도 참조하십시오.

매개변수:
- 입력(`decimal`): 자연로그를 구할 숫자입니다.

반환값: 입력값의 자연로그.

## 예시
다음 예제는 1의 자연로그를 구합니다:
```sql
select ln(1)

-------------------
0
```
다음 예제는 숫자 e의 자연로그를 구합니다:
```sql
select ln(exp(1))

-------------------
1
```

