Reputation: 4560
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.
_newsObj.SUB_AGENCY_ID = long.Parse(this.txtSubAgency.Text);
How can i store my above example data in oracle database ?
Upvotes: 0
Views: 160
Reputation: 30545
c# cannot store 12345678901234567890
big number, you can use decimal
instead.
decimal.Parse(this.txtSubAgency.Text)
Upvotes: 4