472,353 Members | 1,469 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,353 software developers and data experts.

BIGINT Datatype

I need to create a column which can hold bigint datatype. Sample of the value is 9223372036854775803.

I tried creating a column using the 'number(20)' datatype, but it stores the value in the following format:

9.22337203685478E18.

Please provide the solution.

Thanks

Praveen
Sep 12 '07 #1
4 32378
debasisdas
8,127 Expert 4TB
Use number only ,without specifying the P & S.
Sep 12 '07 #2
amitpatel66
2,367 Expert 2GB
I need to create a column which can hold bigint datatype. Sample of the value is 9223372036854775803.

I tried creating a column using the 'number(20)' datatype, but it stores the value in the following format:

9.22337203685478E18.

Please provide the solution.

Thanks

Praveen
All the datatypes INT, NUMBER, SMALLINT stores the value in Exponentiation format.

You can use LONG for such kind of data if that is fine for your requirement. But when you perform any mathematical operation on LONG column, then it will be internally converted to NUMBER and will get displayed as Exponentiation form only.
Sep 12 '07 #3
debasisdas
8,127 Expert 4TB
Are you facing any data loss because of that format.
I don't think there will be any. so what is the problem.
Sep 12 '07 #4
Are you facing any data loss because of that format.
I don't think there will be any. so what is the problem.
Thanks for the reply.

The Long datatype is working fine. It stores the value has it is and doesnt convert into Exponential form.

With Number datatype, there was no loss of information but the value was getting converted into Exponential form.

I just need to check, any specific datatype like bigint is available in Oracle or not as MSSQL provides (hope so).

Regards

Praveen
Sep 13 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: KK | last post by:
Hi, im working on this bigInt class. Need help writing algorithm for the operator*, andy help will be appreciated. Thanks in advance bigInt.h...
10
by: MK | last post by:
Hello, I use BigInt lib from: http://www.codeguru.com/Cpp/data/data-misc/values/article.php/c4563/ It doesn't work properly. I describe my...
1
by: MK | last post by:
I need div two big int. I use this lib: https://sourceforge.net/projects/cpp-bigint/ I create simple project and include two file bigint.h and...
5
by: Rafał Maj Raf256 | last post by:
Hi, is there some small project that proviedes bigint, best as a C++ class, or just as set of struct/functions (C-style)? Something like GMP and...
2
by: Jon | last post by:
Since there is no native support for 64bit integers in dbExpress, it is not trivial to fetch a BIGINT from SQL 2k. If it is possible, how can a...
0
by: Dan Ruthers | last post by:
Hi, I have read in this list and elsewhere the problem with indexes and big int. Still, I have an index that is used or not, depending of the...
2
by: Dave Bazell | last post by:
I was using Math::BigInt and found that postive integers have a leading plus sign: +12345678900000 Is there a way to supress this? Thanks, ...
1
by: Praveen | last post by:
HI, I have a table with IDENTITY column with the datatype as INTEGER. Now this table record count is almost reaching its limt. that is total...
0
by: SQLGuy | last post by:
My company had a partitioned view across 5 SQL 2000 and 2005 clusters, with 1.9B rows of data, with the key using datatype of int. At this point, we...
1
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the...
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.