---
title: "DB2 sequence"
author: "vicento4"
date: "2016-03-23T11:16:07Z"
tags: []
categories: ["数据库"]
slug: "db2-sequence"
draft: false
lastmod: "2016-03-23T11:16:07Z"
id: 2285628
url: "https://vicento4.iteye.com/blog/2285628"
---

CREATE SEQUENCE Base_CPTYRating_sequence
	start with 1 
	increment by 1 
	no maxvalue 
	minvalue 1
	NO CYCLE
	CACHE 20;


currentval: values PREVVAL for Base_CPTYRating_sequence;
nextval: values currentval for Base_CPTYRating_sequence;