完成以下操作
1. 创建数据库company
CREATE DATABASE company;
结果如下
2.在库中创建两个表offices和employees
CREATE TABLE employees(
employeeNumber INT(11) PRIMARY KEY NOT NULL UNIQUE KEY AUTO_INCREMENT,
lastName VARCHAR(50) NOT NULL,
firstName VARCHAR(50) NOT NULL,
mobile VARCHAR(25) UNIQUE KEY,
jobTitle VARCHAR(50) NOT NULL,
birth DATETIME NOT NULL,
note VARCHAR(255),
sex VARCHAR(5)
);
CREATE TABLE offices(
officeCode INT(10) PRIMARY KEY NOT NULL UNIQUE KEY,
city VARCHAR(50) NOT NULL ,
address VARCHAR(50) ,
county