tomcat8conf/server.xml中原属于80端口的http修改为(tomcat默认是8080端口) <Connector port="80" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="443" />之后在con ...
分类:
Web程序 时间:
2020-01-06 21:23:11
阅读次数:
135
任务八:多表操作8.1外键5.1.1 什么是外键(1)、外键是指引用另一个表中的一列或多列,被引用的列应该具有主键约束或唯一性约束。(2)、外键用于建立和加强两个表数据之间的链接。5.1.2 为表添加外键约束为表添加外键约束的语法格式如下: ALTER TABLE 表名 ADD CONSTRAINT ...
分类:
其他好文 时间:
2020-01-03 00:44:37
阅读次数:
140
表结构: 1、新建 2、删除 3、修改 alter table 字段:新增、删除、修改(名称、数据类型、名称数据类型、顺序) 4、查看 ...
分类:
其他好文 时间:
2020-01-01 16:46:03
阅读次数:
99
在安卓开发控件的百分比布局学习中,由于我参考的是第一行代码中的资源,其中的Android studio版本过低,导致的一些错误,花了好长时间来解决它。这里我用的是Android studio 3.5.3 首先是依赖的添加,由于我使用的版本相比参考书中的高,Android studio中已经不支持在c ...
分类:
移动开发 时间:
2020-01-01 12:05:56
阅读次数:
353
一、GridBagLayout 布局管理器以及其GridBagConstraints布局参数详解 GridBagLayout主要使用到以下4个参数: columnWidths:设置列数;例如:gridBagLayout.columnWidths = new int[]{0}; 表示只有一列rowHe ...
分类:
数据库 时间:
2019-12-31 23:19:28
阅读次数:
124
SQL UNIQUE 约束 UNIQUE 约束唯一标识数据库表中的每条记录。 UNIQUE 和 PRIMARY KEY 约束均为列或列集合提供了唯一性的保证。 PRIMARY KEY 约束拥有自动定义的 UNIQUE 约束。 请注意,每个表可以有多个 UNIQUE 约束,但是每个表只能有一个 PRI ...
分类:
数据库 时间:
2019-12-26 21:16:03
阅读次数:
121
题目如下: An integer has sequential digits if and only if each digit in the number is one more than the previous digit. Return a sorted list of all the in ...
分类:
其他好文 时间:
2019-12-23 10:27:41
阅读次数:
71
2.1 Basic Results on the Existence of Optimizers 2.1. DefinitionLet $f:U->\mathbb{R}$ be a function on a set $U\subseteq \mathbb{R}^n$. Let $x^*\in U$ ...
分类:
其他好文 时间:
2019-12-18 10:49:13
阅读次数:
77
题目链接 Given a m * n grid, where each cell is either 0 (empty) or 1 (obstacle). In one step, you can move up, down, left or right from and to an empty c ...
分类:
其他好文 时间:
2019-12-16 00:07:26
阅读次数:
126