这两个查询工作正常:
select cast(sku as bigint) from bid
select cast(sku as bigint) from vwbidrecords
此查询失败并显示消息“将数据类型 varchar 转换为 bigint 时出错”。
select * from bid where cast(sku as bigint) in
(select cast(sku as bigint) from vwbidrecords)
即使第一个两个很好,为什么第三个不起作用对任何人来说都有意义吗?