MySQL Forums
Forum List  »  Oracle

Re: is there any equivalent to TO_CHAR(i,'0999') function in MySQL?
Posted by: Bob Field
Date: November 27, 2006 09:24AM

You can do this using two functions together:
lpad(format(i, 0), 4, '0')

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: is there any equivalent to TO_CHAR(i,'0999') function in MySQL?
21657
November 27, 2006 09:24AM


Sorry, you can't reply to this topic. It has been closed.
This forum is currently read only. You can not log in or make any changes. This is a temporary situation.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.