我有以下打印语句,它打印了一些详细信息,但没有正确标记,看起来很糟糕。有什么办法可以以标签格式打印它们,以便它们都在行尾的同一个地方相遇。
Print'ByLineID: '+ Convert (varchar,@bylineID,1 )+' , '+ Convert(varchar,@Count,1)+ ' matching records found, '+ Convert(varchar,@@rowcount,1)+' updated.'
最终结果:
ByLineID: 119952 , 168 matching records found, 0 updated.
ByLineID: 93979 , 56 matching records found, 0 updated.
ByLineID: 266021 , 45 matching records found, 0 updated.
ByLineID: 105976 , 44 matching records found, 0 updated.
ByLineID: 97525 , 40 matching records found, 0 updated.
ByLineID: 94138 , 39 matching records found, 0 updated.
ByLineID: 88967 , 37 matching records found, 0 updated.