Home > Net >  C # serial port class how to save the data to the database
C # serial port class how to save the data to the database

Time:09-17

Have one great god told how to write this kind of code, the serial data saved to a SQL database. Give a framework also ok

CodePudding user response:


To obtain a serial port data

Then added to the database

Also just two steps

CodePudding user response:

reference 1st floor huodexiangtiaogou123 response:
first obtain serial data

Then added to the database

Also just two steps

Bosses, two lines of code I a bit to see if I am a little white, just contact, a lot of things to oneself fumble, difficult,

CodePudding user response:

reference 1st floor huodexiangtiaogou123 response:
first obtain serial data

Then added to the database

Also just two steps

Bosses, two lines of code I a bit to see if I am a little white, just contact, a lot of things to oneself fumble, difficult,

CodePudding user response:

reference 1st floor huodexiangtiaogou123 response:
first obtain serial data

Then added to the database

Also just two steps


Bosses, two lines of code I a bit to see if I am a little white, just contact, a lot of things to oneself fumble, difficult

CodePudding user response:

You have access to the serial port data, then use ADO directly
You can go to baidu SQLHelper
The insert statement
String SQL="insert into table (column1, column2, column3,... ) VALUES (value1, value2, value3,... );"

CodePudding user response:

reference 5 floor Summer_djz reply:
did you get a serial port data, then use ADO directly
You can go to baidu SQLHelper
The insert statement
String SQL="insert into table (column1, column2, column3,... ) VALUES (value1, value2, value3,... );"

?? Good
  •  Tags:  
  • C #
  • Related