Please help
i have 256782999664
how can i use sqlserver to remove only 256 at the starting point and then add zero to the starting value so that it becomes 0782999664
Hi makumbi,
Use below query.
SQL
SELECT STUFF('256782999664',CHARINDEX('256','256782999664',1),3,'0')
Output
0782999664
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.