数据库操作(DDL)
在数据库下创建表(create_table)
创建表代码块:
CREATE TABLE employee(
id TINYINT PRIMARY KEY auto_increment,
name VARCHAR(25),
gender boolean,
age INT,
department VARCHAR(20),
salary DOUBLE(7,2)
);
添加字段:
删除字段:
修改字段:
CREATE TABLE employee(
id TINYINT PRIMARY KEY auto_increment,
name VARCHAR(25),
gender boolean,
age INT,
department VARCHAR(20),
salary DOUBLE(7,2)
);
添加字段:
删除字段:
修改字段: