查询约束:SELECT id, name, age, uv, country FROM website WHERE url IS NOT NULL;
修改约束:ALTER TABLE website MODIFY alexa INT UNSIGNED NOT NULL UNIQUE;
添加约束:ALTER TABLE website ADD CONSTRAINT myUniqueConstraint UNIQUE(alexa, url);
删除约束:ALTER TABLE website DROP CONSTRAINT myUniqueConstraint;
添加外键约束:ALTER TABLE `order`
ADD FOREIGN KEY (uid) REFERENCES user (id);