question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Format Integers with commas

See original GitHub issue

Hello,

Our users complains about the integers are shown with comma.

Example

SELECT id FROM test;

Where id is INT(11) unsigned

Result is 21,668

Do you know if we can fix it quickly?

Thanks

Max.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
faridskymancommented, Mar 19, 2020

Maybe a little late but I ran into the same issue and solved it by casting the id-column to char. In your case: SELECT CAST(id as CHAR(8)) as id FROM test; Hacky “but it works” 😉

this solves my problem… thx!

2reactions
derspherecommented, Nov 8, 2017

Maybe a little late but I ran into the same issue and solved it by casting the id-column to char. In your case: SELECT CAST(id as CHAR(8)) as id FROM test; Hacky “but it works” 😉

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to format a number with commas as thousands separators?
1. works only well if you dont have float number with more than 3 numbers after the separator in this case a dot....
Read more >
Format Numbers with Commas in JavaScript - Sabe.io
Reading large numbers is a lot easier when there are commas in them. In this post, we'll learn how to format numbers in...
Read more >
How to Format Numbers with Commas in SQL Server
We can use the FORMAT() function to format numbers with commas. When we use this function, we pass the number and a format...
Read more >
How to format numbers in Java? - NumberFormat Example
In order to print numbers with a comma, just call the format() method of NumbeFormat class and it will print it accordingly. By...
Read more >
Number formatting - Globalization | Microsoft Learn
The character used as the decimal separator. In the United States, this character is a period (.). In Germany, it is a comma...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found