turn sql excel Code

1. First, a standard excel table, as follows:

 

 2. In the same row, followed by a cell, enter the text input state of the following: = CONCATENATE ()

=CONCATENATE("insert into table_name(first_label,second_label,third_label) VALUES('"&RC[-3]&"','"&RC[-2]&"','"&RC[-1]&"');")

Wherein, first_label, second_label, third_label you want to insert a column name table; TABLE table_name is to be inserted; VALUES values are first single quotes, then double quotes, then '&&' number, and then placed in two mouse ' & 'between , it is possible to select a cell (click on a cell, the cell will be the value to' fill in the RC [] 'form), click desired value of the cell, you can form a sentence;

Then the labeled cells on the lower right corner of the cross , sequentially pulled down, sql statement string can be formed;

Note: At this point CONCATENATE sentence must be included in double quotes, which is written insert into ...... must be within double quotes.

 

reference:

https://www.cnblogs.com/fjrgg/p/9870567.html

https://www.cnblogs.com/gwyy/p/10339442.html

Guess you like

Origin www.cnblogs.com/qi-yuan-008/p/11878122.html