BIGINT Datatype

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • praveenmittal
    New Member
    • Aug 2007
    • 4

    BIGINT Datatype

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

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

    9.2233720368547 8E18.

    Please provide the solution.

    Thanks

    Praveen
  • debasisdas
    Recognized Expert Expert
    • Dec 2006
    • 8119

    #2
    Use number only ,without specifying the P & S.

    Comment

    • amitpatel66
      Recognized Expert Top Contributor
      • Mar 2007
      • 2358

      #3
      Originally posted by praveenmittal
      I need to create a column which can hold bigint datatype. Sample of the value is 922337203685477 5803.

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

      9.2233720368547 8E18.

      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.

      Comment

      • debasisdas
        Recognized Expert Expert
        • Dec 2006
        • 8119

        #4
        Are you facing any data loss because of that format.
        I don't think there will be any. so what is the problem.

        Comment

        • praveenmittal
          New Member
          • Aug 2007
          • 4

          #5
          Originally posted by debasisdas
          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

          Comment

          Working...