摘要: 一:自增列起始值和步长1. 自增列起始值查看和修改 show create table t1 \G; alter table t1 set auto_increment=2;2. 步长 会话 全局 二:索引和外键 1. 唯一索引 create table t1( id in auto_increme 阅读全文
posted @ 2020-04-01 11:25 hbfengj 阅读(161) 评论(0) 推荐(0)
摘要: 一: 关系型与非关系型数据库1. 表与表之间能创建关系,建立外键,这就是关系型;Oracle、MySQL、db22. 非关系,表与表不能创建关系;Redis MongoDB 二: 添加用户和授权(添加用户必须要授权)1. create user 'alex'@'192.168.1.%' identi 阅读全文
posted @ 2020-04-01 11:18 hbfengj 阅读(131) 评论(0) 推荐(0)