I have problem while converting varchar type to Int type in Informix. Actually I don t know if the value is really varchar or not which I want to convert to INT. It s a sandbox system.
As Example: I am trying to run this kind of
Select telnumber from numbers n
where Cast(n.telnumber AS INT) between 1234 and 9999
I got this error: "Character to numeric conversion error"
如果我这样说:
Select telnumber from numbers n where n.telnumber between 1234 and 9999
它带来了结果,但并非我界定的范围。
130987
130710
130723
我怎么能将电话数转换成数字数值,并在1234和99999米之间使用。