1、简单更新
int prepareQuery(String sql,HashMap<Integer,Object> params)
int prepareQuery(String sql,Object param1,Object param2,...)
2、简化更新
int prepareUpdate(HashMap<Integer,Object> params)
int fields("a,b,c").values(1,2,"kk").prepareUpdate()
int fields("a,b,c").prepareUpdate(Object param1,Object param2,...)
int prepareMapUpdate(HashMap<String key,Object value> params)
int prepareUpdate(String where,HashMap<String key,Object value> params)
Member m=new Member(); HashMap<Integer,Object> params=new
HashMap<Integer,Object>(); params.put(1,1); m.set("a=?").prepareUpdate(params);