在创建字段时使用 not null关键字描述
例如 create table t (
name varchar(20) not null
)
同时主键也是默认不能为空的
Copyright © 广州京杭网络科技有限公司 2005-2025 版权所有 粤ICP备16019765号