How to remove a string from a string

后端 未结 4 1480
孤街浪徒
孤街浪徒 2021-01-28 07:40

I am adding a string (a) to another string (b) before I store it in DB, when I retrieve the value from DB, I want to remove the string(b) from string (a). string (b) is a consta

4条回答
  •  失恋的感觉
    2021-01-28 08:19

    Rather than do any of that, create a computed column in the DB that has the extra text.

    Less storage; less code.

提交回复
热议问题