Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

print integer and string in SQL

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 */
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #print #integer #string #SQL
ADD COMMENT
Topic
Name
9+7 =