There are department level surface is not fixed, as follows:
Now need to function or the query into the following format:
To ask what to do
CodePudding user response:
The select bmid parent_bmid, substr (sysjbmid, 0, instr (sysjbmid, ', ') - 1) leave1,
Substr (sysjbmid, instr (sysjbmid, ', ') + 1, instr (sysjbmid, ', ', 2) - 1) leave2,
Substr (sysjbmid, instr (sysjbmid, ', ', 2) + 1, instr (sysjbmid, ', ', 3) - 1) leave3,
Substr (sysjbmid, instr (sysjbmid, ', ', 3) + 1, instr (sysjbmid, ', ', 4) - 1) leave4
The from tab_name
Well probably similar to intercept, as to how many columns, dynamic statement used to splice
CodePudding user response: