1 class C<T> where T : new() 这是类型参数约束,where表明了对类型变量T的约束关系。where T:A 表示类型变量是继承于A的,或者是A本省。where T: new()指明了创建T的实例应该使用的构造函数。 .NET支持的类型参数约束有以下五种: where T ...
分类:
其他好文 时间:
2020-05-30 12:49:58
阅读次数:
66
安装dnsmasq yum -y install dnsmasq 配置 vim /etc/mnsmasq.conf 修改以下几个数据 # Change this line if you want dns to get its upstream servers from # somewhere oth ...
分类:
其他好文 时间:
2020-05-30 11:12:12
阅读次数:
96
-- 复制全表字段 CREATE TABLE targetTable LIKE sourceTable; INSERT INTO targetTable SELECT * FROM sourceTable; CREATE TABLE 新表 select * from 旧表 where 1=2 -- ...
分类:
数据库 时间:
2020-05-30 10:46:03
阅读次数:
95
import numpy as np import matplotlib as mpl import matplotlib.pyplot as plt print('hello world\n') \[ y=exp(x^2)+z^3 \tag{1} \] 0. test where there is ...
分类:
其他好文 时间:
2020-05-29 23:27:13
阅读次数:
78
基本命令行操作 命令行连接【命令】 mysql -uroot -p123456 --连接数据库 update mysql.user set authentication_string=password('123456') where user='root' and Host = 'localhost ...
分类:
数据库 时间:
2020-05-29 20:59:16
阅读次数:
75
一、环境搭建 1.项目构建,我们在原来的基础上修改即可。 修改maven工程的pom文件,添加必须的引用: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-i ...
分类:
编程语言 时间:
2020-05-29 13:51:21
阅读次数:
62
1 2 3 SELECT * FROM 数据库A.dbo.表A a, 数据库B.dbo.表B b WHERE a.field=b.field 4 5 6 7 "DBO"可以省略 如 8 9 10 11 SELECT * FROM 数据库A..表A a, 数据库B..表B b WHERE a.fiel ...
分类:
数据库 时间:
2020-05-29 12:17:04
阅读次数:
64
什么是mybatis MyBatis 是支持普通 SQL查询,存储过程和高级映射的优秀持久层框架。MyBatis 消除了几乎所有的JDBC代码和参数的手工设置以及结果集的检索。MyBatis 使用简单的 XML或注解用于配置和原始映射,将接口和 Java 的POJOs(Plain Ordinary ...
分类:
其他好文 时间:
2020-05-29 11:56:28
阅读次数:
71
(本文章内容仅在windows10下经测试能够运行,不能保证其他环境下的可靠性) 笛卡尔积使用案例代码如下: 笛卡尔积 select * from emp e, dept d; 等值连接使用案例代码如下: 等值连接 select * from emp e, dept d; where e.deptn ...
分类:
数据库 时间:
2020-05-29 09:49:07
阅读次数:
84
ORM操作 select * from tb where id > 1 # 对应关系 models.tb.objects.filter(id__gt=1) models.tb.objects.filter(id=1) models.tb.objects.filter(id__lt=1) #创建后表名 ...
分类:
数据库 时间:
2020-05-28 16:52:32
阅读次数:
82