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

How to record macros with Notepad++

藏色散人
Release: 2020-07-14 11:19:46
forward
5130 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:
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
Latest Issues
Why is my hosts notepad blank?
From 1970-01-01 08:00:00
0
0
0
Teacher Notepad++ how to make prompt code
From 1970-01-01 08:00:00
0
0
0
Notepad++ will not use
From 1970-01-01 08:00:00
0
0
0
The contents of hosts notepad are incorrect
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template