SyntaxFix
Write A Post
Hire A Developer
Questions
Why don't you just cast the value to INTEGER and then back to VARCHAR?
INTEGER
VARCHAR
SELECT CAST(CAST('000000000' AS INTEGER) AS VARCHAR) -------- 0