Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Padding a string
Message
 
 
To
29/02/2008 10:50:13
General information
Forum:
Microsoft SQL Server
Category:
Other
Miscellaneous
Thread ID:
01297712
Message ID:
01297728
Views:
20
>>In general, it would be a string you want to pad. In this case, I meant a column named 'col1' in a table.
>
>Thanks, that works.

You're welcome. To clarify further, a pseudo code would be
 RIGHT(REPLICATE('0', <len to pad to>) + <character expression to pad>, <len to pad to>)
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform