T-SQL Substring - Last 3 Characters

前端 未结 5 523
野趣味
野趣味 2021-01-31 07:01

Using T-SQL, how would I go about getting the last 3 characters of a varchar column?

So the column text is IDS_ENUM_Change_262147_190

5条回答
  •  忘掉有多难
    2021-01-31 07:35

    if you want to specifically find strings which ends with desired characters then this would help you...

    select * from tablename where col_name like '%190'
    

提交回复
热议问题