---
title: "oracle sequence"
author: "lorry1113"
date: "2012-03-23T13:35:38Z"
tags: []
categories: ["数据库"]
slug: "oracle-sequence"
draft: false
lastmod: "2012-03-23T13:35:38Z"
id: 1462390
url: "https://lorry1113.iteye.com/blog/1462390"
---

create or replace procedure p_createseq(tablename in varchar2)
is
strsql varchar2(500);
begin
strsql:='create sequence seq_'||tablename||' minvalue 1000 maxvalue 99999999 start with 1000 increment by 1 nocache';
execute immediate strsql;
end p_createseq;
