Home > Database > Mysql Tutorial > Mysql method to execute sql files in batches_MySQL

Mysql method to execute sql files in batches_MySQL

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-11-30 23:59:35
Original
1111 people have browsed it

1. The sql files to be executed are 1.sql, 2.sql, 3.sql, 4.sql, etc.

2. Write a batch.sql file:

source 1.sql;
source 2.sql;
source 3.sql;
source 4.sql;
Copy after login

3. Execute source/batch file directory/batch.sql under mysql;

The above is the entire method of mysql batch execution of sql files brought to you by the editor. I hope you will support it~

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
MySQL stops process
From 1970-01-01 08:00:00
0
0
0
Error when installing mysql on linux
From 1970-01-01 08:00:00
0
0
0
phpstudy cannot start mysql?
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