Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Commit 8852ab3

Browse files
authored
Added leading zero amount-example
1 parent 65b7a46 commit 8852ab3

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

docs/t-sql/functions/formatmessage-transact-sql.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,9 @@ SELECT FORMATMESSAGE('This is the %s and this is the %s.', 'first variable', 'se
8686
The following examples show a variety of formatting options.
8787

8888
```
89-
SELECT FORMATMESSAGE('Signed int %i, %d %i, %d, %+i, %+d, %+i, %+d', 5, -5, 50, -50, -11, -11, 11, 11);
90-
SELECT FORMATMESSAGE('Signed int with leading zero %020i', 5);
89+
SELECT FORMATMESSAGE('Signed int %i, %d %i, %d, %+i, %+d, %+i, %+d', 5, -5, 50, -50, -11, -11, 11, 11);
90+
SELECT FORMATMESSAGE('Signed int with up to 3 leading zero's %03i', 5);
91+
SELECT FORMATMESSAGE('Signed int with up to 20 leading zero's %020i', 5);
9192
SELECT FORMATMESSAGE('Signed int with leading zero 0 %020i', -55);
9293
SELECT FORMATMESSAGE('Bigint %I64d', 3000000000);
9394
SELECT FORMATMESSAGE('Unsigned int %u, %u', 50, -50);

0 commit comments

Comments
 (0)