2026-03-12 20:23:15
This commit is contained in:
25
idev/example_create_sequence.sql
Normal file
25
idev/example_create_sequence.sql
Normal file
@@ -0,0 +1,25 @@
|
||||
-- +----------------------------------------------------------------------------+
|
||||
-- | Jeffrey M. Hunter |
|
||||
-- | jhunter@idevelopment.info |
|
||||
-- | www.idevelopment.info |
|
||||
-- |----------------------------------------------------------------------------|
|
||||
-- | Copyright (c) 1998-2012 Jeffrey M. Hunter. All rights reserved. |
|
||||
-- |----------------------------------------------------------------------------|
|
||||
-- | DATABASE : Oracle |
|
||||
-- | FILE : example_create_sequence.sql |
|
||||
-- | CLASS : Examples |
|
||||
-- | PURPOSE : Example SQL script that demonstrates how to create a sequence |
|
||||
-- | number generator. |
|
||||
-- | NOTE : As with any code, ensure to test this script in a development |
|
||||
-- | environment before attempting to run it in production. |
|
||||
-- +----------------------------------------------------------------------------+
|
||||
|
||||
DROP SEQUENCE user_id_seq
|
||||
/
|
||||
|
||||
CREATE SEQUENCE user_id_seq
|
||||
INCREMENT BY 1
|
||||
START WITH 1000
|
||||
NOMAXVALUE
|
||||
NOCYCLE
|
||||
/
|
||||
Reference in New Issue
Block a user