컴퓨터/MariaDB
MariaDB FORMAT 천 단위 쉼표 찍기
sayyesdoit
2022. 12. 22. 04:49
FORMAT(number, decimal_places)
number를 소숫점 decimal_places 자리까지 표현하는 함수이다.
FORMAT(number, 0)
위와 같이 하면 정수부분까지 표현을 하는데, 소수점 자리와 상관없이 숫자로 표현하면 무조건 세자리마다 쉼표를 찍는다.