Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我运行以下 Sql 时,我得到以下结果 DB2 SQL :
Select * from LOTOIL1 where lotkey = 'B20130806' order by OIPRI ASC
结果 :
我在 OIPRI 上订购并希望得到结果:
-3 -1 0 3
我需要做什么才能得到结果?
提前致谢。
尝试
order by OIPRI * 1 ASC
强制integer转换。
integer
但实际上您应该将数据类型更改为数字类型。