I think about combination of these functions - T-SQL [FORMAT()](https://msdn.microsoft.com/ru-ru/library/hh213505.aspx?f=255&MSPPError=-2147217396) - MySQL [FORMAT()](http://dev.mysql.com/doc/refman/5.1/en/string-functions.html#function_format) Plus there are some other [Oracle](http://docs.oracle.com/cd/B10500_01/server.920/a96540/sql_elements4a.htm) and [Postres](http://www.postgresql.org/docs/8.3/static/functions-formatting.html) formatting functions.