Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: BIGINT support?

Re: BIGINT support?

From: <Kenneth>
Date: Sat, 13 Mar 2004 18:26:53 GMT
Message-ID: <4053507e.7039802@news.inet.tele.dk>


On 13 Mar 2004 04:09:40 -0800, jfontain_at_free.fr (Jean-Luc Fontaine) wrote:

>I am wondering whether Oracle supports something like the
>BIGINT type (MySQL, PostgreSQL, SQLite, ...), which can handle 64 bits
>signed numbers:
>from -9223372036854775808 to 9223372036854775807.
>
>After searching on the web, it does not seem so (yet?).
>Can the 2 extreme numbers above be stored in and read back from a
>column of some type, and which type?
>(note: in MySQL, BIGINT is equivalent to BIGINT(20): maybe something
>like NUMERIC(20,0) would do?.
>
>Many thanks in advance,
>
>
>Jean-Luc

Hi Jean-Luc,

Oracle has a maxium of 38 digits of precision for numbers.

Oracle suppports ANSI integer datatypes like INTEGER but internally converts them all to Oracle's built-in datatype NUMBER(n). So to specify the largest possible integer :

create table foo ( large_number NUMBER(38));

Check the on-line documentation or

http://www.ixora.com.au/notes/numeric_datatypes.htm

for further documentation

Received on Sat Mar 13 2004 - 12:26:53 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US