Home > Development Tools > notepad > How to record macros with Notepad++

How to record macros with Notepad++

藏色散人
Release: 2020-07-14 11:19:46
forward
4964 people have browsed it

The following tutorial column from notepad will introduce you to recording macros with Notepad. I hope it will be helpful to friends who need it!

How to record macros with Notepad++

We need to change the header of the csv document into the fields of MySQL DB, so that when importing csv data, it can be based on the set fields. To process and import data in corresponding fields, you can use Notepad to achieve this semi-automatic function.

The steps are as follows:

Open Notepad -> Macro -> Start Recoding

Copy and paste the csv header that needs to be processed Go to Notepad:

Ctrl F, bring up Find, and then use regular expression processing: copy spaces, Replace with \r

Then use ^ and $ to add '

before and after, and then add the field data type at the end:

Save the Macro after completion

Then complete the sql statement:

CREATE TABLE `xxx`.`xxxx-test`
(
`BoardNo` varchar (100),
`StationID` varchar (100),
`starttime` datetime,
`SFCStatus` varchar (100),
`TotalTestTime` varchar (100),
`result` varchar (100),
`WIFI_11B_TX1_2412` varchar (100),
`WIFI_11AG_TX1_2437` varchar (100),
`WIFI_11N_TX1_2472` varchar (100),
) ENGINE=InnoDB DEFAULT CHARSET=utf8
Copy after login

The above is the detailed content of How to record macros with Notepad++. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:csdn.net
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template