Home > Software engineering >  Ask a simple data processing problems
Ask a simple data processing problems

Time:10-02

A table
ID NAME YN
Zhang Y 1
2 li si N

Table B
ID NAME AGE
1 * * 20
2 li si 30


Problem a: data in a ListView list should be added to the Mysql table B, but if you want to increase the data in table B already exists, does not increase, the current practice is, first to a lookup of data in a ListView, tags have the data in table B, and then use insert into by tag, there's a better way?

Question 2: as shown in table B, if B table by two records in A table at the same time to add A record "li si, Y", namely A the same data, if there are effective in the table is not increased, how to do?

CodePudding user response:

Problem a: are you the known than the new data in a listview control, the new data should be small, compared to the efficiency of the request is not high, it is almost like you programming thinking, logic is simple and clear, the code is easy to maintain,
Problem two didn't see

CodePudding user response:

Suggestions according to the unique ID number
  • Related