Best way to compare the end of a string, use RIGHT, LIKE or other?

前端 未结 3 1183
醉梦人生
醉梦人生 2021-02-08 05:17

I need to compare the end of strings against a list of possible ending in a stored procedure. It will be called a lot and there are around 10-15 candidate endings. At this point

3条回答
  •  日久生厌
    2021-02-08 06:11

    also, you may use a combination of RIGHT and LENGTH so that you do not hardcode string length.

提交回复
热议问题