Comments - FORMAT

7 years, 3 months ago Ian Gilfillan

You could use LPAD, for example:

SELECT LPAD(56,3,0);
+--------------+
| LPAD(56,3,0) |
+--------------+
| 056          |
+--------------+
 
7 years, 3 months ago tino BuanaLabel

Thank you for reply

 
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.