开发者

SUBSTRING related problem

开发者 https://www.devze.com 2023-01-06 16:33 出处:网络
I have 开发者_如何学编程string type abc_01, abcd_01 or 02 now I want the substring up to _ ie abc_,abcd_ etc. I am using db2 as400.Please suggest the processing through RIGHT or LEFT function.use SUBS

I have 开发者_如何学编程string type abc_01, abcd_01 or 02 now I want the substring up to _ ie abc_,abcd_ etc. I am using db2 as400. Please suggest the processing through RIGHT or LEFT function.


use SUBSTRING and charindex as suggested in your duplicate other post.

0

精彩评论

暂无评论...
验证码 换一张
取 消