trim values from left using SQL

后端 未结 5 1862
忘了有多久
忘了有多久 2021-01-28 02:44

I want to trim the characters from the left in my SQL value:

I have the following value:

ABC0005953

How do i trim the value 3 character

5条回答
  •  失恋的感觉
    2021-01-28 03:12

    Two options for you:

    SELECT SUBSTRING('ABC0005953', 5,7)
    
    SELECT RIGHT('ABC0005953', (LEN('ABC0005953') - 4))
    

提交回复
热议问题