摘要:
查询表中搞得约束信息:show keys from 表名; 示例:创建depts表包含department_id该列为主键且自动增长,department_name列不允许重复,location_id列不允许含有空值; create table depts (department_id int pr 阅读全文
摘要:
修改表添加非空约束: 使用DDL语句添加非空约束:alter table 表名 modify 列名 类型 not null; 示例:向emp表中的salary添加非空约束 >alter table emp modify salary float (8,2) not null; navicat中查看效 阅读全文