Get everything after and before certain character in SQL Server

前端 未结 15 1947
臣服心动
臣服心动 2020-12-07 18:48

I got the following entry in my database:

images/test.jpg

I want to trim the entry so I get: test

So basically, I want

15条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-07 19:28

    I just did this in one of my reports and it was very simple.

    Try this:

    =MID(Fields!.Value,8,4)
    

    Note: This worked for me because the value I was trying to get was a constant not sure it what you are trying to get is a constant as well.

提交回复
热议问题