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.
如何创建一个序列,它有两个部分,一个是固定字符部分,另一个是可变整数部分,如“ LTR00001 ”,序列中的下一个值应该是“ LTR00002 ”
你不能。序列只是整数。
但是您可以从序列中选择一个格式化的字符串
SELECT 'LTR' || to_char('09999', the_sequence.nextval) FROM DUAL;