TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
SQL Server Transact Basic to Expert - Repeating a string N number of times
Karthikeyan Anbarasan
Jun 15, 2011
2.8
k
0
0
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
SQL Server Transact Basic to Expert - Repeating a string N number of times
This blog shows how to repeat a string N number of times using REPLICATE in SQL Server
Syntax:
REPLICATE ( characterexpression ,integerValue )
Example:
SELECT REPLICATE ('A', 5)
The expected result would be like AAAAA
SQL Server Transact Basic to Expert - Repeating a string N number of times
Next Recommended Reading
SQL Server Transact Basic to Expert - Stuffing string into a string