只要在连接URL字符里添加参数 ?useUnicode=true&characterEncoding=utf-8 完整的URL字符串如下: 1 String url = "jdbc:mysql://127.0.0.1:3306/northwind?useUnicode=true&characterE ...
分类:
数据库 时间:
2019-09-05 18:47:25
阅读次数:
94
IDEA连接数据库的时候,出现Server returns invalid timezone. Go to 'Advanced' tab and set 'serverTimezone' property manually.的警告。这是因为SYSTEM为SQL默认美国时间,但是我们中国要比他们迟8小 ...
分类:
数据库 时间:
2019-09-05 13:49:20
阅读次数:
134
网上很多同步教程,按照教程操作upload时一直报错:sync:invalid gist ID 查找问题很久才知道 gist和token是两个东西。下面重新梳理下: 一、下载安装插件 Setting sync 二、github上生成gist 进入 your gists 随便给自己的gist起个名,添 ...
分类:
其他好文 时间:
2019-09-04 00:15:29
阅读次数:
454
摘要:syntax sugar 一、?? null-coalescing operator 例如:int y = x ?? -1; 意指将x值指定给y,但如果x值为null时,则将-1指定给y。 二、?: ternary conditional operat... ...
分类:
其他好文 时间:
2019-09-03 14:48:30
阅读次数:
83
代码十分简单,通过对比vs,得知gcc调用的是ostream.tcc文件中的write函数write(const _CharT* __s, streamsize __n)。 vs中是定义在ostream文件中的write(const _Elem* _Str,streamsize _Count),gc ...
分类:
其他好文 时间:
2019-09-03 13:42:26
阅读次数:
141
先看看spring的bean作用域有几种,分别有啥不同。 spring bean作用域有以下5个: singleton:单例模式,当spring创建applicationContext容器的时候,spring会欲初始化所有的该作用域实例,加上lazy-init就可以避免预处理; prototype: ...
分类:
编程语言 时间:
2019-09-03 09:38:45
阅读次数:
106
将oracle关键字作为字段名,提示错误:ORA-00904: invalid IDENTIFIER。 ...
分类:
数据库 时间:
2019-09-01 23:35:20
阅读次数:
132
简介delete1、删除整张表的数据: delete from table_name; 2、删除部分数据,添加where子句: delete from table_name where...;3、说明 1)、属于DML语言,每次删除一行,都在事务日志中为所删除的每行记录一项。产生rollback,事 ...
分类:
数据库 时间:
2019-09-01 18:54:31
阅读次数:
136
Synopsis Select an image buffer to display in a user-defined window. Synopsis Select an image buffer to display in a user-defined window. Syntax void ...
题目如下: A transaction is possibly invalid if: the amount exceeds $1000, or; if it occurs within (and including) 60 minutes of another transaction with t ...
分类:
其他好文 时间:
2019-08-31 23:39:17
阅读次数:
101