case when patindex('%B公司%',b.cpx)>0 then SubString(b.gysddhm,0,13) Else '456' end)
需求: 需要截取B公司的b.gysddhm中的前13个字符,但是在这里报错