Technology is a powerful force in our society. Data, software,and communication can be used for bad: to entrench unfair power structures, to undermine human rights, and to protect vested interests. But they can also be used for good: to make underrepresented people's voice heard, to create opportunities for everyone, and to avert disasters. We are dedicated to working toward the good.
摘要:
本文记录使用Mybatis操作数据库时碰到的一些语句,供以后参考。 一,多条件查询 示意SQL语句:SELECT t_field1, t_field2 FROM table_name WHERE t_field3 (BETWEEN startTime AND endTime) AND t_field 阅读全文
摘要:
一,问题描述 数据格式: id, timeStamp,count 条件1:查询 某个时间段 内的数据: timeStamp BETWEEN startTime AND endTime。比如 timeStamp BETWEEN 1499875200 AND 1499875600 条件2:记录 的 id 阅读全文
摘要:
在实际应用中经常会比较两个对象是否相等,比如下面的Address类,它有两个属性:String province 和 String city。 在现实生活中我们认为若两个 Address 的 province 和 city 属性相同,则它们应该是同一个地址(省市都一样,当然就是同一个地区啦)。但下面 阅读全文