电脑编程 SQL性别限制只能写男女,怎么写?SQL数据库建表如何添加只能是男或女表达式check约束 admin 发表于2022-07-13 浏览125 评论0 SQL性别限制只能写男女,怎么写创建表名称名称((性char(2)检查(性='男性'或sex ='女性”)不为空)默认性别是男性代码,如下:创建表格学生表((学...