Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: BIGINT support?
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
![]() |
![]() |