Home > Net >  C # winfrom sqlite data types
C # winfrom sqlite data types

Time:03-13

How to don't change the database field type as output on the interface

(whereId sqlite database data type is an int)

Query display code

The query results show

CodePudding user response:

Int. 4 bytes, you are one of the largest number of 8 bytes, need to use the type ulong

CodePudding user response:

reference 1/f, rabbit party at large response:
int. 4 bytes, accounts for the largest number 8 bytes, you need to use type ulong

The converted or not

If without the Convert Toint64 error directly

CodePudding user response:

Database is maintenance, you can modify the field type? Use the Text,

CodePudding user response:

WhereData=https://bbs.csdn.net/topics/ulong.Parse (srReadData [r]. "whereId" ToString ());

CodePudding user response:

reference 5 floor of the rabbit party at large response:
whereData=https://bbs.csdn.net/topics/ulong.Parse (srReadData [r]. "whereId" ToString ());

Still won't do

And I can't access enough type change

CodePudding user response:

You print type see
MessageBox. Show (srReadData [r]. "whereId GetType (), ToString ());

CodePudding user response:

To make a break and see what's the length of his return to ah,

That is overflow, you can consider to use decimal decimal

  •  Tags:  
  • C#
  • Related