Fork me on GitHub

2019年3月5日

mysql语句插入前判断数据是否重复

摘要: 在mysql中插入数据有时需要判断数据插入是否重复 语句编写:insert into 表(相应字段) select 相应字段 from dual where not exists (select 相应字段 from 表 where 相应查询条件) eg: 阅读全文

posted @ 2019-03-05 16:51 蓝魂殇 阅读(2079) 评论(0) 推荐(0) 编辑

TomCat端口被占用问题

摘要: TomCat在使用时,有时会爆出端口被占用的问题 解决方法: 1.快捷键win+R,输入cmd,点击回车后再输入netstat -ano|findstr 8005 注:什么端口被占用就输入什么端口号 2.再输入taskkill /pid 4404 /f 在点击回车键 注:4404对应的是步骤1的结果 阅读全文

posted @ 2019-03-05 16:32 蓝魂殇 阅读(644) 评论(0) 推荐(0) 编辑

mysql编码不统一形成的错误

摘要: 错误提示:[Err]1267 - Illegal mix of collations(utf8_general_ci,IMPLICIT) and (utf8_unicode_ci,IMPLICIT) for operation ‘=’ 更改方法:将两个表的编码统一,可以执行ALTER TABLE t 阅读全文

posted @ 2019-03-05 16:17 蓝魂殇 阅读(116) 评论(0) 推荐(0) 编辑

导航