update 表名 set 要更新的字段=replace(要更新的字段,'要替换的字符串','替换后字符串') where +条件 Read More
posted @ 2019-12-18 10:09 苹果也是梨 Views(13501) Comments(0) Diggs(0)
select * from 表 where instr(','||判断的字段||',',',指定的值,')>0 mybatis : select * from 表 where instr(','||判断的字段||',',concat(concat(',', #{userId}), ',')) >0 Read More
posted @ 2019-11-22 13:34 苹果也是梨 Views(5494) Comments(0) Diggs(0)
yum remove mysql mysql-server mysql-libs mysql-common rm -rf /var/lib/mysql rm /etc/my.cnf 查看是否还有mysql软件,有的话继续删除。 软件卸载完毕后如果需要可以删除mysql的数据库:/var/lib/my Read More
posted @ 2019-05-09 22:16 苹果也是梨 Views(171) Comments(0) Diggs(0)
原因:JDK版本不兼容。运行的Java Class文件采用高版本的JDK编译,然后在低版本的JRE环境中运行,有时会报此错误。 解决:1)升级JDK 2)调整Eclipse中Java Compiler到对应的jdk 3)Installed JREs 添加对应的jre Read More
posted @ 2019-04-26 17:09 苹果也是梨 Views(431) Comments(0) Diggs(0)
[root@localhost mysql]# ./scripts/mysql_install_db --user=mysql FATAL ERROR: please install the following Perl modules before executing ./scripts/mysq Read More
posted @ 2019-04-12 10:58 苹果也是梨 Views(406) Comments(0) Diggs(0)
linux系统通用安装通过tar.gz压缩包安装此方法适用于绝大部分的linux系统 1、先下载tar.gz的压缩包,这里使用官网下载。 进入: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-213315 Read More
posted @ 2019-04-11 10:51 苹果也是梨 Views(261) Comments(0) Diggs(0)
故障现象: 使用vim修改文件报错,系统提示如下: E37: No write since last change (add ! to override) 故障原因: 文件为只读文件,无法修改。 解决办法: 使用命令:w!强制存盘即可,在vim模式下,键入以下命令: :w! 存盘后在使用vim命令检 Read More
posted @ 2019-04-11 10:24 苹果也是梨 Views(621) Comments(0) Diggs(0)
eclipse indigo 3.7 1.显示内存使用Window--PreferencesGeneral 勾选 Show heap status 2.设置工作空间字符集Window--PreferencesGeneral--Workspace Text file encoding 选 Other Read More
posted @ 2018-11-22 16:12 苹果也是梨 Views(224) Comments(0) Diggs(0)