Skip to content

Commit

Permalink
sql - modify decimal.md
Browse files Browse the repository at this point in the history
  • Loading branch information
SDRLurker authored Dec 13, 2021
1 parent 086f9a4 commit 206f54e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sql/decimal.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,19 @@ select cast(1701 / 84936 as numeric (10,10));

---

## 2개의 답변 중 1개를 추려냄
## 2개의 답변 중 1개

위는 정수 나누기입니다. 하나의 값이 적어도 숫자(정확한 데이터 타입)나 FLOAT(주의: 이는 근사의 데이터 타입) 타입임을 보장해야 합니다.
위는 정수 나누기입니다. 하나의 값이 적어도 `NUMERIC`(정확한 데이터 타입)나 `FLOAT`(주의: 이는 근사의 데이터 타입) 타입임을 보장해야 합니다.

It is integer division. Make sure that at least one argument is: NUMERIC(accurate data type)/FLOAT(caution: it's approximate data type):

> / 나누기 (정수 나누기는 결과를 버립니다.)
```SQL
select 1701.0 / 84936;
-- or
-- 또는
SELECT 1.0 * 1701 / 84936;
-- or
-- 또는
SELECT CAST(1701 AS NUMERIC(10,4))/84936;
```

Expand Down

0 comments on commit 206f54e

Please sign in to comment.