jeudi 15 janvier 2015

Format REAL values by adding thousands separator in SQLite

SQLite3:



select f1 from table1; -- f1 real;



+---------------+
| f1 |
+---------------+
| 12345.95 |
| 1234567.78 |
| 1234567890.11 |
+---------------+

How to get:



+------------------+
| f1 |
+------------------+
| 12,345.95 |
| 1,234,567.78 |
| 1,234,567,890.11 |
+------------------+

Aucun commentaire:

Enregistrer un commentaire