How can I select the first 100 characters in SQL Server?

前端 未结 5 825
灰色年华
灰色年华 2021-01-03 18:25

I want to truncate a column to a max of 100 characters. How do you do this in SQL Server?

5条回答
  •  囚心锁ツ
    2021-01-03 19:07

    substring is the method: SUBSTRING ( value_expression ,start_expression , length_expression ) from the help.

提交回复
热议问题