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
Repeat Specific Character or Word in SQL Server 2012 without Loop
Jignesh Trivedi
Nov 20
2015
Code
932
0
0
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
expand
Replicate string function of SQL Server repeats a character or string values for the specified number of time.
Example 1:
Select Replicate(
'T'
,5)
Output
TTTTT
Example 2:
Select Replicate(
'Jignesh '
,3)
Output:
Jignesh Jignesh Jignesh
SQL Server without Loop
string function
SQL server 2012