尝试从.dump文件导入数据时查询出错

时间:2014-11-05 22:07:17

标签: mysql mysqldump data-import

我正在尝试使用下面的查询将数据导入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)
);

此处departmentstable我正在尝试将数据导入,INFOdatabase

0 个答案:

没有答案