Excel splits to obtain specified content (obtains SQL statements that modify batches)

For example:

Modify the data insertion statement (remove the intermediate database name)

Step 1. Copy the content to column A and select column A. Use Excel’s [Data-Column] operation. Split by setting the split symbol or fixed length. (Here, the separator symbol ‘.’ is used to separate. After obtaining the ‘.’, the content is column B and column C).

Step 2: Write the algorithm in column D: ‘=LEFT(A:A,11)’ to obtain the first 11 characters from the left in column A.

Step 3. Write the algorithm in column E: ‘=D:D&B:B&C:C’ to obtain the spliced ​​data of column D+column B+column C. Then column E is the data I need. As shown below:

Guess you like

Origin blog.csdn.net/qq_42857603/article/details/107526407