SELECT to_charEMRSEQ_CONSULTATIONNEXTVAL FROM dual oracle创建这个序列的sql怎么写 从10000000开始
To create a sequence in Oracle starting from 10000000, you can use the following SQL statement:
CREATE SEQUENCE EMR.SEQ_CONSULTATION
START WITH 10000000
INCREMENT BY 1
NOCACHE
NOCYCLE;
This statement creates a sequence named "SEQ_CONSULTATION" in the schema "EMR". The sequence starts with 10000000 and increments by 1 for each generated value. The "NOCACHE" option means that the sequence will not be preallocated in memory, and the "NOCYCLE" option means that the sequence will not cycle back to the start value after reaching the maximum value
AI 优化版
原文地址:https://www.cveoy.top/t/topic/iw1G 著作权归作者所有。请勿转载和采集!