MySQL Forums
Forum List  »  General

remove letters and left zeros at the same time
Posted by: Hugo ARaujo
Date: February 05, 2025 05:58AM

how do i do to remove letters and left zeros at the same time

Example:
F00801

Pretended:

801

I did TRIM(LEADING 'F' FROM i.external_code) AS Cod_Forn
and it came 00801 but, i want 801

Thank you

Options: ReplyQuote


Subject
Written By
Posted
remove letters and left zeros at the same time
February 05, 2025 05:58AM


Sorry, only registered users may post in this forum.

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.