Answers for "print sql concat int variable with string"

SQL
1

sql server concat string and int

SELECT 'Comments: ' + CAST(9 AS varchar(12)) AS Result;
Posted by: Guest on April-08-2020
0

sql print concatenate

declare @x INT = 1 /* Declares an integer variable named "x" with the value of 1 */
    
PRINT 'There are ' + CAST(@x AS VARCHAR) + ' alias combinations did not match a record' /* Prints a string concatenated with x casted as a varchar */
Posted by: Guest on August-31-2021

Code answers related to "SQL"

Browse Popular Code Answers by Language