上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 47 下一页
摘要: 权限管理 在MySQL中,我们可以使用root用户创建出一些新的用户并为他们分配一些权限,如可编辑那些数据库,可使用那些SQL语句等等。 打个比方,一个开发部门可能公用一个数据库,而各个开发小组的组长包括成员只能查看或编辑自身业务范围之内的记录,这种需求下就需要使用到权限管理。 系统权限 系统权限是 阅读全文
posted @ 2020-09-04 10:10 云崖先生 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 准备数据 create table department ( id int unsigned auto_increment primary key, name char(12) not null unique # 部门名称唯一 ); create table teacher( id int unsi 阅读全文
posted @ 2020-09-02 11:14 云崖先生 阅读(161) 评论(0) 推荐(1) 编辑
摘要: 准备数据 以下操作将在该表中进行 create table student ( id int unsigned primary key auto_increment, name char(12) not null, gender enum("male","famale") default "male 阅读全文
posted @ 2020-09-01 17:38 云崖先生 阅读(536) 评论(3) 推荐(2) 编辑
摘要: 创建表格 以下所有操作均在user_temp表中进行操作。 create table user_temp( id int primary key auto_increment, name char(5) not null, gender enum("男","女") default "男", age 阅读全文
posted @ 2020-08-31 22:58 云崖先生 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 基础知识 约束条件与数据类型的存储(显示)宽度均为可选参数,其作用在于保证数据的完整性与一致性。 常用完整性约束如下表所示 约束条件描述 DEFAULT 为该字段设置默认值 NOT NULL 标识该字段不能为空(非字符串有效) UNIQUE KEY 标识该字段的值是唯一的 PRIMARY KEY 标 阅读全文
posted @ 2020-08-31 18:21 云崖先生 阅读(250) 评论(0) 推荐(0) 编辑
上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 47 下一页