Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
SQL Server Transact Basic to Expert - Repeating a string N number of times
WhatsApp
Karthikeyan Anbarasan
13y
2.8
k
0
0
25
Blog
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
Up Next
SQL Server Transact Basic to Expert - Stuffing string into a string
Ebook Download
View all
Introducing Microsoft SQL Server 2016
Read by 11k people
Download Now!
Learn
View all
Membership not found