列名 字段类型 NOT NULL
-- 添加非空约束 CREATE TABLE emp5( eid INT PRIMARY KEY AUTO_INCREMENT, -- ename 字段不能为空 ename VARCHAR(20) NOT NULL, sex CHAR(1) );
Powered by: 博客园 Copyright © 2024 等峰也等你 Powered by .NET 9.0 on Kubernetes