SQL 字符串 数字

2025-03-04 15:56:21
推荐回答(3个)
回答1:

要先判断ExMaxWindV是否数值型:
select * from 表 where isnumeric(ExMaxWindV) > 0
再用语句
select * from 表
where 条件 in
(
select 条件 from 表 where isnumeric(ExMaxWindV) > 0
)
and ExMaxWindV > 200

回答2:

select * into #tmp where isnumeric(ExMaxWindV) > 0

select * from #tmp where ExMaxWindV > 200

回答3:

将exmaxwindv中有效数字提取出来 统一的转换成同一类型就行了