PRINT VARIABLE IN SQL code example
Example 1: print in pl sql
dbms_output.put_line("YOUR MESSAGE");
Example 2: Cast for print sql
declare @x INT = 1
PRINT 'There are ' + CAST(@x AS VARCHAR) + ' alias combinations did not match a record'
dbms_output.put_line("YOUR MESSAGE");
declare @x INT = 1
PRINT 'There are ' + CAST(@x AS VARCHAR) + ' alias combinations did not match a record'