が数値の場合にのみ比較
select * from student
where
(
case when ISNUMERIC( linerevnum )
then cast (linerevnum as int)
else null
end ) = 1
または単純:
select * from student
linerevnum = '1'
が数値の場合にのみ比較
select * from student
where
(
case when ISNUMERIC( linerevnum )
then cast (linerevnum as int)
else null
end ) = 1
または単純:
select * from student
linerevnum = '1'