I have a column like this
ID
--------
00012345
00067891
12345678
I need to eliminate 0's if there is any in the first 3 rows. What should I use as a query to achieve this?
I have no idea how to do this
I have a column like this
ID
--------
00012345
00067891
12345678
I need to eliminate 0's if there is any in the first 3 rows. What should I use as a query to achieve this?
I have no idea how to do this
1条答案
按热度按时间8e2ybdfx1#
If your input is number and want zeros removed, use the this code This code deletes all leading zeros but Code two only first 3 character delete
Otherwise, your input is not just a number or if you want it not to be deleted if there are two or one to zero, you can use the this code