SYNTAX:
SELECT CONCAT (String_Value1, String_Value2, String_Value3 [, String_ValueN])
-- Between 2 and 254 values can be passed.
EXAMPLE:
DECLARE @FirstName NVARCHAR(10) = N'हरि'
,@LastNameVARCHAR(10) = 'Sharma'
,@Cell VARCHAR(20) = '+1 (425) XXX-YYYY'
,@Age INT = 30
,@Delimiter VARCHAR(2) = SPACE(2)
SELECT CONCAT(@FirstName, @Delimiter, @LastName, @Delimiter, @Cell, @Delimiter, @Age)
OUTPUT:
No comments:
Post a Comment