SQL SUBSTRING vs RIGHT - Best Practice

后端 未结 4 1269
日久生厌
日久生厌 2021-02-07 00:06

I\'m trying to find out the best practice when removing characters from the start of a string.

In some languages, you can use MID without a length parameter however, in

4条回答
  •  一整个雨季
    2021-02-07 00:26

    I would use the right function as it better shows your intent. The substring function is best used for extracting strings from the middle of a longer string.

提交回复
热议问题