有一个sql用union拼接的如下: select id,(**还有很多字段**),'' as NewName from tb1 union select id,(**还有很多字段**),name as NewName from tb2 union select id,(**还有很多字段**),name as NewName from tb3 tb1表中不存在这个字段所以用'' as NewNametb2,tb3中有这了个字段是varchar的查询以一直报错:StringIndexOutOfBo…