MS 액세스 형식() 함수
❮ MS 액세스 기능
예시
숫자 표현식을 퍼센트로 포맷:
SELECT Format(0.5, "Percent") AS FormattedNum;
정의 및 사용
Format() 함수는 지정된 형식으로 숫자 값의 형식을 지정합니다.
통사론
Format(value, format)
매개변수 값
Parameter |
Description |
value |
Required. The numeric value to format |
format |
Optional. The format to to use.
Format |
Description |
General Number |
Indicates a number, without thousand separators |
Currency |
Indicates currency, with thousand separators and two decimal places |
Fixed |
Shows minimum one digit to the left of the decimal place and two digits to the right of the decimal place |
Standard |
Shows the thousand separators + minimum one digit to the left of the decimal place, and two digits to the right of the decimal place |
Percent |
Shows a percent value (with percent sign) and two digits to the right of the decimal place |
Scientific |
Indicates scientific notation |
Yes/No |
Shows No if value = 0 and Yes if value <> 0 |
True/False |
Shows False if value = 0 and True if value <> 0 |
On/Off |
Shows Off if value = 0 and On if value <> 0 |
|
기술적 세부 사항
더 많은 예
예시
"가격" 열을 통화 형식으로 지정합니다.
SELECT Format(Price, "Currency") AS FormattedPrice
FROM Products;
❮ MS 액세스 기능