from app import mongo from app.external.yz.goods_api import YzGoodsApi from app.model.tags import Tags from app.model.goods import Good1s class YzGood... ...
分类:
其他好文 时间:
2019-06-29 23:54:53
阅读次数:
141
python获取mysql库信息/表信息/表结构/索引核心代码来自https://github.com/cookieY/Yearning此项目‘‘‘AboutconnectionDatabase2017-11-23cookie‘‘‘importpymysqlclassSQLgo(object):def__init__(self,ip=None,user=None,password=None,db=
分类:
数据库 时间:
2019-06-28 16:34:47
阅读次数:
548
环境:Oracle11.2.0.4single两套备库只安装Oracle软件及监听。一、主库操作SQL>showparameterdb_unique_name;SQL>createpfile=‘/home/oracle/pfilebak.ora‘fromspfile;更改forcelogging:alterdatabaseforcelogging;归档模式:archiveloglist
分类:
数据库 时间:
2019-06-28 11:53:02
阅读次数:
135
一、外键 constraint 名称 foreign key() references 表名() 二、唯一索引 unique 名称 (列) 联合唯一 三、外键变种 1、一对多 2、一对一 3、多对多(额外创建一张表) ...
分类:
数据库 时间:
2019-06-27 01:05:42
阅读次数:
199
MAC(Media Access Control,介质访问控制)地址,或称为MAC位址、硬件地址,用来定义网络设备的位置。MAC集成在网卡,由48bit的16进制的数字组成,0~23位数字叫作组织唯一标志符(organizationally unique,是识别局域网节点的标识)。24~47位是由厂 ...
分类:
系统相关 时间:
2019-06-26 19:21:45
阅读次数:
203
### 1. MyBatis MyBatis是一种持久层框架。 传统的JDBC开发中,需要程序员编写大量的代码,例如创建与数据库的连接 > 获取Statement/PreparedStatement对象 > 执行SQL语句 > 获取结果 > 处理结果 > 释放资源……这个流程相对固定,代码量略多。 ...
分类:
其他好文 时间:
2019-06-25 09:32:20
阅读次数:
88
单表查询的语法及关键字执行的优先级 单表查询语法 关键字执行的优先级 1. 找到表: from 2. 拿着where指定的约束条件,去文件 / 表中取出一条条记录 3. 将取出的一条条记录进行分组group by , 如果没有group by ,则整体作为一组 4. 执行select (distin ...
分类:
数据库 时间:
2019-06-24 00:21:33
阅读次数:
131
因为很熟悉DJANGO,所以对TP,要慢慢适应。 1,SQL文件 2,Application\Common\Conf\config.php 3,Applicaton\Home\Model\UserModel.class.php 4,Applicaton\Home\Model\PostModel.cl ...
分类:
Web程序 时间:
2019-06-23 21:14:09
阅读次数:
155
原题链接在这里:https://leetcode.com/problems/flip-equivalent-binary-trees/ 题目: For a binary tree T, we can define a flip operation as follows: choose any nod ...
分类:
其他好文 时间:
2019-06-23 15:52:29
阅读次数:
121
Given a pair of positive integers, for example, 6 and 110, can this equation 6 = 110 be true? The answer is yes, if 6 is a decimal number and 110 is a ...
分类:
其他好文 时间:
2019-06-22 22:26:15
阅读次数:
108