I would like to have a fix number of characters, let say 10 (xxxxxxxxxx) and input may be some varchar let say (abcd). Wanted output in that case is xxxxxxabcd.
Is there any elegant way to avoid looping for 10 - len(abcd)?
edit:
This questiom may be a duplicate if it's observed through accepted answer but not through a way of asking a question. Otherwise I would be able to find existing question and wouldn't create a duplicate.