Solved

making sequence bigint

Posted on 2013-01-01
3
341 Views
Last Modified: 2013-01-17
Hi,
I want to make sequence as bigint or varchar(19) as below sequence don't help me what should i do to make it bigint.

Thanks

CREATE SEQUENCE AA_K
START WITH 1;
0
Comment
Question by:sam2929
  • 2
3 Comments
 
LVL 143

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 38734425
oracle doesn't know "bigint". it knows NUMBER data type, and FLOAT ... for large numbers.
which is defined in the target column, not the sequence object
http://www.techonthenet.com/oracle/sequences.php
with MAXVALUE 999999999999999999999999999 being the default, that should be big enough?

so you might want to clarify the question or actual problem?
0
 

Author Comment

by:sam2929
ID: 38734662
what will be max value for below sequence?

CREATE SEQUENCE  SEQ_D_DATE
START WITH     1
INCREMENT BY   1
NOCACHE
NOCYCLE;
0
 
LVL 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 500 total points
ID: 38734724
as documented in above link, and written in above comment:
MAXVALUE 999999999999999999999999999 being the default ...
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
execute immediate plsql block 5 59
Oracle - SQL Parse String 5 47
Row_number in SQL 6 34
pl/sql parameter is null sometimes 2 16
Why doesn't the Oracle optimizer use my index? Querying too much data Most Oracle developers know that an index is useful when you can use it to restrict your result set to a small number of the total rows in a table. So, the obvious side…
Truncate is a DDL Command where as Delete is a DML Command. Both will delete data from table, but what is the difference between these below statements truncate table <table_name> ?? delete from <table_name> ?? The first command cannot be …
This video shows how to copy a database user from one database to another user DBMS_METADATA.  It also shows how to copy a user's permissions and discusses password hash differences between Oracle 10g and 11g.
This video explains at a high level about the four available data types in Oracle and how dates can be manipulated by the user to get data into and out of the database.

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question