嗨,我想打印类似的东西
I will start from there
test this phrase
所以我做了以下
declare @x varchar(max)
select @x = LEFT(' '+'I will start from there',LEN('test this phrase')+ LEN('I will start from there'))+ CHAR(10) + 'test this phrase'
print @x
输出是
I will start from there
test this phrase
第一行不是从第二行的开头开始的,left
应该可以解决问题,但不确定出了什么问题