SQL Server中8%的字符序列有什么特别之处吗?
我一生都无法弄清楚以下查询如何返回 %H539 而不是 %H5398%
DECLARE @contractnumber AS VARCHAR(5) = 'H5398'
if(@contractNumber is not null) set @contractNumber = '%' + @contractNumber + '%'
PRINT @contractnumber
SQL Server中8%的字符序列有什么特别之处吗?
我一生都无法弄清楚以下查询如何返回 %H539 而不是 %H5398%
DECLARE @contractnumber AS VARCHAR(5) = 'H5398'
if(@contractNumber is not null) set @contractNumber = '%' + @contractNumber + '%'
PRINT @contractnumber