版权声明:本文为作者原创,转载请务必注明出处! https://blog.csdn.net/qq_37545120/article/details/84316683
select '[2.0]Exploration and Development Department'
--想截取掉[2.0] 只显示Exploration and Development Department
select right('[2.0]Exploration and Development Department',len('[2.0]Exploration and Development Department')-5)
select SUBSTRING('[2.0]Exploration and Development Department',6,LEN('[2.0]Exploration and Development Department'))
---PB里的写法是
ls_dept = Right(string(ldw_input.object.dept_index[ll_row]), len(string(ldw_input.object.dept_index[ll_row]))-5)