//age in (1,2,3,4,5,6)inSql("age","1,2,3,4,5,6");//id in (select id from table where id < 3)inSql("id","select id from table where id < 3");
11、notIn
12、notInSql
//age not in (1,2,3,4,5,6)notInSql("age","1,2,3,4,5,6");//id not in (select id from table where id < 3)notInSql("id","select id from table where id < 3");
13、between
between(R column,Object val1,Object val2);
14、notBetween
15、like
//name like '%王%'like(SysUser::getName,"王");//name like '%王'likeLeft(SysUser::getName,"王");//name like '王%'likeRight(SysUser::getName,"王");
16、notLike
17、and
//默认and连接//age=? and name=?.eq(SysUser::getAge,18).eq(SysUser::getName,"kimi");// and 嵌套:and(Consumer<Param> consumer)//and ( name = ? and age = ? ).and(i->i.eq(SysUser::getName,"kimi").eq(SysUser::getAge,18))
18、or
//age = ? or name = ?.eq(SysUser::getAge,18).or().eq(SysUser::getName,"kimi");//or嵌套:or(Consumer<Param> consumer)//or (name=? or age=?).or(i->i.eq(SysUser::getName,"kimi").or().eq(SysUser::getAge,18))//or ( name = ? and age = ? ).or(i->i.eq(SysUser::getName,"kimi").eq(SysUser::getAge,18))
大半个月没做题,手非常生...
#include <cstdio>
#include <vector>
#include <map>int N, M, K, t, m, n;
std::vector<std::map<int, int>> vec;void similarity(int a, int b){int cnt 0;for(auto c : vec[a]){if(vec[b].find(c.…