select substr('XDI465T2S-62XD-0-0-0-16',1,instr('XDI465T2S-62XD-0-0-0-16','-',1,2)-1) from dual
select substr(WAFERNO,1,instr(WAFERNO,'-',1)-1) as NWAFERNO from 表