oj-sql

题目

SQL119 修改表

思路

  1. alter table修改字段schema;

solution

alter table

ALTER TABLE user_info ADD school varchar(15) AFTER `level`;
ALTER TABLE user_info CHANGE job profession varchar(10);
ALTER TABLE user_info CHANGE COLUMN achievement achievement int DEFAULT 0;