码迷,mamicode.com
首页 > 数据库 > 详细

mysql数据库(day6)索引,ORM框架

时间:2018-01-14 13:05:08      阅读:202      评论:0      收藏:0      [点我收藏+]

标签:logs   安装   color   sel   lap   body   desc   log   调用   

参考博客:
http://www.cnblogs.com/wupeiqi/articles/5713323.html
http://www.cnblogs.com/wupeiqi/articles/5716963.html
内容回顾:

技术分享图片
参考博客:
    http://www.cnblogs.com/wupeiqi/articles/5713323.html
    http://www.cnblogs.com/wupeiqi/articles/5716963.html
内容回顾:
    1. 数据库是什么
    2. MySQL安装
    3. 用户授权
    4. 
        数据库操作
            - 
        数据表
            - 数据类型
            - 是否可以为空
            - 自增
            - 主键
            - 外键
            - 唯一索引

        数据行
            增
            删
            改
            查
                排序: order by desc/asc
                分组:group by
                条件:where
                连表:
                    left join
                    right join
                    inner join
                临时表:
                通配符
                分页:limit
                组合:
                    union
        视图(虚拟的相当于临时表)
        触发器(是对每一行来操作的)
        函数 select xx(f)
        存储过程
            - 游标
            - 事务
            - 结果集+ “返回值”
        pymysql
            - 连接 connect(...)
            - 操作(游标)
                - 增删改 -> commit
                - 查     -> fetchone,fetchall
                - SQL注入
                - 调用存储过程:
                    callproc(p1,参数)
                    select @_存储过程名称_0
            - 关闭游标
            - 关闭连接
View Code

 

mysql数据库(day6)索引,ORM框架

标签:logs   安装   color   sel   lap   body   desc   log   调用   

原文地址:https://www.cnblogs.com/wanchenxi/p/8282625.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!