0

I want to store 20 numbers(eg.12345678901234567890) in oracle database. I've used NUMBER data type in oracle database and when I pass long data type from the C# end it's getting error,

Error is : Value was either too large or too small for an Int64.

Code

 _newsObj.SUB_AGENCY_ID = long.Parse(this.txtSubAgency.Text);

How can i store my above example data in oracle database ?

TechGuy
  • 4,298
  • 15
  • 56
  • 87

1 Answers1

4

cannot store 12345678901234567890 big number, you can use decimal instead.

decimal.Parse(this.txtSubAgency.Text)
Derviş Kayımbaşıoğlu
  • 28,492
  • 4
  • 50
  • 72