--------员工信息表: aEmployee --------籍贯表: eCD_Place --------身份证号字段:CertNo select badge as 工号, SUBSTRING(CertNo,1,6) as 籍贯ID,p.title as 籍贯 from eEmployee e left join eCD_Place p on SUBSTRING(CertNo,1,6)=p.Code where e.status =1 order by e.badge
|
立即参与
