在SQL Server 2017中,您可以使用此语法,但不能在早期版本中使用:
SELECT Name = TRIM(Name) FROM dbo.Customer;
sql sql-server trim
sql ×1
sql-server ×1
trim ×1