I want to add char in Select statement.
Ex:
SELECT '.' + OUTTRUNK as NUMBER
Expected Result:
.348977834
.456935534
.090922834
.234999734
How can I do this?
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Try the more SQL-ish:
but keep in mind that, if
OUTRUNKis a numeric rather than string type, you’ll probably find that090922834will actually be90922834and will render as.90922834, not what you want.If that’s the case, you’re probably looking for something more like:
(check the number of zeros there, I tried to get it right but testing is rightly your concern).