摘要: 一、概念 策略模式(Strategy):它定义了一系列的算法,并将每一个算法封装起来,而且使它们还可以相互替换。策略模式让算法的变化不会影响到使用算法的客户。(原文:The Strategy Pattern defines a family of algorithms,encapsulates each one,and makes them interchangeable. Strategy le... 阅读全文
posted @ 2014-05-09 17:44 简单的执着_俊 阅读(296) 评论(0) 推荐(0) 编辑
摘要: 1、在面试的时候碰到一个 问题,就是让写一张表中有id和name 两个字段,查询出name重复的所有数据,现在列下: select * from xi a where (a.username) in (select username from xi group by username having count(*) > 1) 2、查询出所有数据进行分组之后,和重复数据的重复次数的查询数据,先列下:... 阅读全文
posted @ 2014-05-09 08:55 简单的执着_俊 阅读(203) 评论(0) 推荐(0) 编辑