SELECT ID01, HEBING, SUBSTR(case when hebing is null then SUBSTR(HEBING,1,INSTR(HEBING,'''')-1) else HEBING end ) as 前面, replace(SUBSTR(HEBING,INSTR(HEBING,',')+1, (INSTR(HEBING,',',1,2)-INSTR(HEBING,',')-1)),chr(39),'') as 中间 , replace(SUBSTR(HEBING,INSTR(HEBING,',',1,2)+1) ,chr(39),'') as 最后 from QRQC_TRACK_REPORT FOR UPDATE 这条语句是后来修改了一下的语句 但还是不对 报图2的错SELECT ID01, HEBING, SUBSTR(HEBING,1,INSTR(HEBING,'''')-1) as 前面, replace(SUBSTR(HEBING,INSTR(HEBING,',')+1, (INSTR(HEBING,',',1,2)-INSTR(HEBING,',')-1)),chr(39),'') as 中间 , replace(SUBSTR(HEBING,INSTR(HEBING,',',1,2)+1) ,chr(39),'') as 最后 from QRQC_TRACK_REPORT FOR UPDATE