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.
我是 oracle 的新手,但我想要增加 0.5 的序列怎么可能?
请帮我解决这个问题
Will , 你不能创建一个递增 0.5 的序列,但你可以使用一个技巧
create sequence sq start with 1 increment by 1; select 0.5 * sq.nextval from dual connect by level < 11 | 0.5*SQ.NEXTVAL | ------------------ | 0.5 | | 1 | | 1.5 | | 2 | | 2.5 | | 3 | | 3.5 | | 4 | | 4.5 | | 5 |