SQL Server Transact Basic to Expert - Repeating a string N number of timesKarthikeyan Anbarasan15yPublished Jun 15, 2011, 12:00 AMUpdated Jun 15, 2011, 8:56 AM3.1k00Reactions×25BlogThis blog shows how to repeat a string N number of times using REPLICATE in SQL ServerSyntax:REPLICATE ( characterexpression ,integerValue )Example:SELECT REPLICATE ('A', 5)The expected result would be like AAAAACommentsJoin the conversation! Your thoughts help the community grow.Sign in to leave a commentIt is the same account you read, post and publish with — and you will come straight back to this page.Sign inCreate an account
Join the conversation! Your thoughts help the community grow.