select * from srs_sce
left join sits..srs_cbo as cbostart
on cbostart.cboayrc = scj_ayrc and
cbostart.cbo_crsc = scj_crsc and
cbostart.cbo_blok = scj_blok and
cbostart.cbo_occl = scj_occl
left join ins_ayr on ayr_code = scj_ayrc
where isnull(scj_hesd,
isnull(cbostart.cbo_begd,
**convert(varchar,year(ayr_begd))+'-10-01'))**
我的代码在上面我在尝试转换 int 和 varchar 时遇到问题。有人可以帮忙吗?