标签: db2 identity sql-insert
如何使用DB2中的序列插入标识列?
答案 0 :(得分:0)
代码:
INSERT INTO Table1 (seq, val1, val2, ...) VALUES (NEXTVAL FROM seq, val1, val2, ...)
答案 1 :(得分:0)
INSERT INTO Table1 (seq, val1, val2, ...) VALUES (NEXT VALUE FOR seq, val1, val2, ...)