select cast(a.Vchcode as int) as avchcode,a.ptypeid,a.assqty,unit,b.pfullname,b.standard,b.type from ldtdlysale a left outer join ldtptype b on a.ptypeid = b.ptypeid
cast(a.vchcode as int)-------------就是他了
select cast(a.Vchcode as int) as avchcode,a.ptypeid,a.assqty,unit,b.pfullname,b.standard,b.type from ldtdlysale a left outer join ldtptype b on a.ptypeid = b.ptypeid
cast(a.vchcode as int)-------------就是他了