随笔- 310  文章- 1  评论- 0  阅读- 85655 
02 2022 档案
python 单例模式
摘要:class Test(object): __instance = None def __init__(self): print(" init方法 ") def __new__(cls): print(" new方法 ") if cls.__instance == None: cls.__instan 阅读全文
posted @ 2022-02-21 17:20 boye169 阅读(15) 评论(0) 推荐(0) 编辑
python 自定义的异常类
摘要:class InputException(Exception): '''自定义的异常类''' def __init__(self,length,atleast): self.length = length self.atleast = atleast def test_except(): try: 阅读全文
posted @ 2022-02-21 17:18 boye169 阅读(84) 评论(0) 推荐(0) 编辑
mysql 视图
摘要:简介视图(view)是一种虚拟存在的表,是一个逻辑表,本身并不包含数据。作为一个select语句保存在数据字典中的。通过视图,可以展现基表的部分数据;视图数据来自定义视图的查询中使用的表,使用视图动态生成。基表:用来创建视图的表叫做基表base table 视图的诸多优点,如下 1)简单:使用视图的 阅读全文
posted @ 2022-02-08 17:48 boye169 阅读(43) 评论(0) 推荐(0) 编辑
mysql 索引
摘要:创建索引 create index index_test on test(id,name); --创建索引 CREATE UNIQUE INDEX index_test ON test (id,name); --创建唯一索引 删除索引 drop index index_test on test; - 阅读全文
posted @ 2022-02-08 16:56 boye169 阅读(19) 评论(0) 推荐(0) 编辑
SQL DDL DML DQL DCL
摘要:1,DML(DataManipulationLanguage):数据操作语言,用来定义数据库记录(数据) insert,delete,update,select(插入、删除、修改、检索) 2,DCL(DataControlLanguage):数据控制语言,用来定义访问权限和安全级别; COMMIT, 阅读全文
posted @ 2022-02-07 15:14 boye169 阅读(37) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示