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.
如何使用 DB2 中的序列插入标识列?
代码:
INSERT INTO Table1 (seq, val1, val2, ...) VALUES (NEXTVAL FROM seq, val1, val2, ...)
INSERT INTO Table1 (seq, val1, val2, ...) VALUES (NEXT VALUE FOR seq, val1, val2, ...)