在建表时: `create_time` timestamp not null default current_timestamp comment'创建时间',--将系统当前时间设为默认值 `update_tiem` timestamp not null default current_timesta ...
分类:
其他好文 时间:
2020-06-11 01:03:08
阅读次数:
62
1. 21 % -5; // machine-dependent: result is 1 or -4 21 / -5; // machine-dependent: result -4 or -5 2. 溢出 3. bool 类型可转换为任何算术类型——bool 值false 用 0 表示,而 tr ...
分类:
其他好文 时间:
2020-06-11 00:42:03
阅读次数:
45
半注解半xml配置的开发方式 把<bean> 属性注入<property>,使用注解方式的替换 替换bean的注解: @Component, 标记在类上, 表示把这个类,交给Spring管理, 除dao,service,web层之外的类 @Repository 用于注册DAO(持久层 ) @Serv ...
分类:
编程语言 时间:
2020-06-10 21:25:26
阅读次数:
81
摘抄自https://www.cnblogs.com/jiqing9006/p/9366888.html 第一步:备份 $ sudo mv /var/lib/dpkg/info /var/lib/dpkg/info.bk 第二步:新建 $ sudo mkdir /var/lib/dpkg/info ...
分类:
其他好文 时间:
2020-06-10 21:10:41
阅读次数:
62
一什么是设计模型 软件工程中,设计模式(designpattern)是对软件设计中普遍存在(反复出现)的各种问题,所提出的解决方案 二设计模型的目的 编写软件过程中,程序员面临着来自耦合性,内聚性以及可维护性,可扩展性,重用性,灵活性等多方面的挑战,设计模式是为了让程序(软件),具有更好 1)代码重 ...
分类:
其他好文 时间:
2020-06-10 19:06:50
阅读次数:
165
# sqlversion.php sqlversion_file=${cur_dir}/web-admin/sql_version/sqlversion.php sed -i "s#^\$db_host.*;#\$db_host='${DB_HOST}';#g" $sqlversion_file s ...
分类:
系统相关 时间:
2020-06-10 17:17:40
阅读次数:
400
1、html部分 <table> <thead> <tr> <th>序号</th> <th>姓名</th> <th>年龄</th> <th>性别</th> </tr> </thead> <tbody> <tr> <td>1</td> <td>张三</td> <td>18</td> <td>男</td ...
分类:
其他好文 时间:
2020-06-10 14:45:24
阅读次数:
72
一、需求:需要给某个机器的某个文件的指定行添加一些 字符 二、处理过程: 1.某行字符较少的话可以使用替换的方法,如下: $ sed -i.bak '10 s#netmask#aaaaaaaaaaaa#' file 表示对第10行 进行替换 2.某行字符太长的话,使用sed 命令可以实现指定行添加一 ...
分类:
其他好文 时间:
2020-06-10 13:31:08
阅读次数:
104
可替换元素和非替换元素 可替换元素replaced element也称作可置换元素,其展现效果不是由CSS来控制的,这些元素是一种外部对象,它们外观的渲染,是独立于CSS的。非置换元素non-replaced element也称作非替换元素,其内容由CSS渲染直接表现给客户端。 可替换元素 一个内容 ...
分类:
其他好文 时间:
2020-06-10 13:27:56
阅读次数:
71
字符函数 length 获取字节量 ## 查看英文的字节长度mysql> select length('haha'); + + | length('haha') | + + | 4 | + + 1 row in set (0.00 sec)## 查看中文的字节长度 mysql> select len ...
分类:
数据库 时间:
2020-06-10 13:14:44
阅读次数:
69