我正在尝试使用下面的查询将数据导入MySql表,但source
关键字抛出错误
SELECT 'LOADING departments' as 'INFO'; *source* load_departments.dump ;
Database
和表格departments
创建了下面的查询:
DROP DATABASE IF EXISTS employees;
CREATE DATABASE IF NOT EXISTS employees;
USE employees;
SELECT 'CREATING DATABASE STRUCTURE' as 'INFO';
CREATE TABLE departments (
dept_no CHAR(4) NOT NULL,
dept_name VARCHAR(40) NOT NULL,
PRIMARY KEY (dept_no),
UNIQUE KEY (dept_name)
);
此处departments
为table
我正在尝试将数据导入,INFO
是database
。