Adding Leading Zeros
Hello- I want to add leading zeros to a varchar field with length of 13. The following is the generally accepted syntax Select right('0000000000000' + PROD_ID, 13) FROM PRODUCTS The error I am getting is: [SELECT - 0 row(s), 0.000 secs] [Error Code: 0, SQL State: 42725] ERROR: operator is not unique: "unknown" + varchar Which is not helpful. Can anyone please help?
Sign up
Already have an account? Login
Welcome to the Rocket Forum!
Please log in or register:
Employee Login | Registration Member Login | RegistrationEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.