Select max int from varchar column

前端 未结 9 1271
离开以前
离开以前 2021-02-19 04:07

I am trying to retrieve the largest number from a varchar column that includes both numbers and strings. An example of the data I\'m working with:

BoxNumber

9条回答
  •  清歌不尽
    2021-02-19 04:43

    You should check this solution out for values like '+' and '-' as I think the IsNumeric function may return 1 for these values

提交回复
热议问题