随笔分类 - 复习
摘要:一、连接查询 1.交叉连接 select * from 表1 cross join 表2 -->笛卡儿积 2.内连接 select * from 表1 inner join 表2 -->笛卡儿积 select * from 表1 join 表2 -->笛卡儿积 select * from 表1 in
        阅读全文
                
摘要:一、索引 主键索引:primery key 唯一索引:unique key 全文索引:fulltext index 普通索引:index 二、关系: 一对一 一对多/多对一 多对多 三、主键冲突 更新:insert into 表名 values (值) on duplicate key update
        阅读全文
                
摘要:一、数据库的操作 1.创建库 create database 库名; 2.查看库 show create database 库名; -->查看数据库的创建语句 show databases; --> 查看所有的数据库 3.修改库 alter database 库名 charset gbk; 4.删除
        阅读全文
                
 
                     
                    
                 
                    
                
 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号