Home > database >  How to traverse the query of data in the table rows of data, and export it to a variable named file
How to traverse the query of data in the table rows of data, and export it to a variable named file

Time:09-25

There is a table of data migration between city, want to according to every city query one by one, each city has multiple data), after studied the cursor, try to use under the cursor, found that export only one line of data, and judgment, the condition of traverse and original idea is to define two variables, the second variable of the first variable the next line, the condition judgment, whether two variables to etc, not equal to export, at the same time with respect to two variables, such as query the next line, could you tell me how can need according to their own requirements to each data query one by one, and he define variables and conditions to judge whether the idea of right, thank you?
  • Related