select SUBSTRING(CWAREHOUSE_LOCATION_CODE,6,4) from DEMO2
select left(CWAREHOUSE_LOCATION_CODE,4) from DEMO2
select right(CWAREHOUSE_LOCATION_CODE,4) from DEMO2
标签:SUBSTRING,CWAREHOUSE,CODE,切割,截取,DEMO2,LOCATION,字符串,select
来源: https://www.cnblogs.com/lq8890/p/15194693.html