上一页 1 2 3 4 5 6 ··· 16 下一页
摘要: 对于列内存在逗号的字符串,如何使用mysql准确匹配[img]http://dl2.iteye.com/upload/attachment/0129/6636/c4c5d6c3-a774-3eab-a5b4-932a4703b3cb.png[/img]初始使用sqlS... 阅读全文
posted @ 2018-04-27 10:36 Yannis-chen 阅读(240) 评论(0) 推荐(0) 编辑
摘要: 新年伊始,立个Flag.Java9 源码分析与学习。后面持续更新。 阅读全文
posted @ 2018-03-01 13:00 Yannis-chen 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 在nginx里增加 add_header X-Content-Type-Options nosniff; add_header X-XSS-Protection "1; mode=block"; add_header X-Frame-Options "SAM... 阅读全文
posted @ 2018-02-09 19:44 Yannis-chen 阅读(1323) 评论(0) 推荐(0) 编辑
摘要: 1.vi /etc/my.cnf(Windows下是my.ini) 在[mysqld]下添加 sql_mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO... 阅读全文
posted @ 2018-02-09 19:09 Yannis-chen 阅读(591) 评论(0) 推荐(0) 编辑
摘要: [b][i]Linux下查看系统当前时间 使用date命令查看当前时间[/i][/b]若想直接同步系统时间为互联网时间,则使用如下方式[b][i]Linux下使用ntpdate进行时间同步[/i][/b]1、安装ntpdate,执行以下命令# yum install ... 阅读全文
posted @ 2018-02-05 18:28 Yannis-chen 阅读(434) 评论(0) 推荐(0) 编辑
摘要: public static void main(String[] args) { DecimalFormat df = new DecimalFormat("###.##"); BigDecimal b1 = new BigDecimal("28.010... 阅读全文
posted @ 2018-01-31 11:13 Yannis-chen 阅读(2932) 评论(0) 推荐(0) 编辑
摘要: 在进行数据库操作时,有时我们需要把两个关联表中的某个字段同步,即把表1中字段A的值赋值到表2的字段B中,表1和表2通过字段C关联。SQL语句如下所示(Sql sever 和MySql的写法稍有不同):SQL Sever:写法1: update t2 set t2.B=... 阅读全文
posted @ 2017-12-26 13:02 Yannis-chen 阅读(12508) 评论(0) 推荐(1) 编辑
摘要: public static String addZeroForNum(String str, int strLength) { int strLen = str.length(); if (strLen < strLength) { ... 阅读全文
posted @ 2017-12-01 10:00 Yannis-chen 阅读(1447) 评论(0) 推荐(0) 编辑
摘要: List 转换为 String数组List list = new ArrayList(); list.add("a1"); list.add("a2"); String[] toBeStored = list.toArray(new String[l... 阅读全文
posted @ 2017-08-23 09:39 Yannis-chen 阅读(736) 评论(0) 推荐(0) 编辑
摘要: 1. 从openoffice官网(http://www.openoffice.org/download/)下载linux相应的openoffice安装包(安装包有deb和rpm,linux BIT 对应32bit和64bit)。2. 安装包名 OO... 阅读全文
posted @ 2017-07-12 16:03 Yannis-chen 阅读(1080) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 16 下一页