एमएस एक्सेस फॉर्मेट () फंक्शन
❮ एमएस एक्सेस फंक्शन्स
उदाहरण
संख्यात्मक अभिव्यक्ति को प्रतिशत में प्रारूपित करें:
SELECT Format(0.5, "Percent") AS FormattedNum;
परिभाषा और उपयोग
प्रारूप () फ़ंक्शन निर्दिष्ट प्रारूप के साथ एक संख्यात्मक मान को प्रारूपित करता है।
वाक्य - विन्यास
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 |
|
टेक्निकल डिटेल
काम में: |
एक्सेस 2000 . से |
और ज्यादा उदाहरण
उदाहरण
"मूल्य" कॉलम को मुद्रा में प्रारूपित करें:
SELECT Format(Price, "Currency") AS FormattedPrice
FROM Products;
❮ एमएस एक्सेस फंक्शन्स