SQL Server REPLICATE() 함수
예시
문자열 반복:
SELECT REPLICATE('SQL Tutorial', 5);
정의 및 사용법
REPLICATE() 함수는 문자열을 지정된 횟수만큼 반복합니다.
통사론
REPLICATE(string, integer)
매개변수 값
Parameter | Description |
---|---|
string | Required. The string to repeat |
integer | Required. The number of times to repeat the string |
기술적 세부 사항
작동: | SQL Server(2008부터), Azure SQL Database, Azure SQL Data Warehouse, 병렬 데이터 웨어하우스 |
---|
더 많은 예
예시
CustomerName의 텍스트를 두 번 반복합니다.
SELECT REPLICATE(CustomerName, 2)
FROM Customers;