摘要: java 中的 拷贝分为浅拷贝 和 深拷贝浅拷贝需要实现Cloneable接口,深拷贝需要实现Serializable接口。public class Square implements Cloneable, Serializable{ private Point location = new Point(0, 0); private float sideLength = 1F; @Override public Object clone() { Square tmp = null; try { tmp = (Square) supe... 阅读全文
posted @ 2014-01-25 12:00 coreWars 阅读(215) 评论(0) 推荐(0) 编辑
摘要: 1. 这条语句主要是用来修复一个表中的数据 , 在另一个统计表中没有统计时,进行修改统计表的操作 update expert_count ec inner join ( select sum(e.EFFECT_SCORE) es_count, sum(e.ATTITUDE_SCORE) as_count, sum(e.PROMOTE_REASONABLE_SCORE) pro_count, sum(e.PRICE_REASONABLE_SCORE) pri_count, sum(e.ENVIRONMENT_... 阅读全文
posted @ 2014-01-25 10:39 coreWars 阅读(322) 评论(0) 推荐(0) 编辑
摘要: 1.Error Code: 1175. You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column To disable safe mode, toggle the option in Preferences -> SQL Queries and reconnect. 解决方式: SETSQL_SAFE_UPDATES= 0; // 重要的是这一句 update T set col = 'xxx' where conditio.. 阅读全文
posted @ 2014-01-25 10:34 coreWars 阅读(122) 评论(0) 推荐(0) 编辑