码迷,mamicode.com
首页 >  
搜索关键字:mybatis where    ( 33957个结果
Mysql触发器示例
begindeclare x int(11);declare r int(11);set r= (select Rule from qn_huiyuan_grade g where g.MId=NEW.MId and g.mpOrgId=NEW.mpOrgId limit 1);if r=1then...
分类:数据库   时间:2014-06-16 00:03:20    阅读次数:286
查找某个表的 某个字段最大值得记录
select * from table1 a where b=(select max(b) from table1 where a=a.a)select jy_version, member_id from mid owhere o.jy_version =(select max(p.jy_vers...
分类:其他好文   时间:2014-06-15 22:15:29    阅读次数:151
Range-Based for Loops
for ( decl : coll ){ statement}where decl is the declaration of each element of the passed collection coll and for which the statements specified are....
分类:其他好文   时间:2014-06-15 22:11:18    阅读次数:295
Linq常用
1、左关联查询var lst = from m in db.信息 join d in db.明细信息 on m.单号 equals d.单号 into mi from dt in mi.DefaultIfEmpty() //dt标示右表 where m.单号 == "2014" && dt.编码.S...
分类:其他好文   时间:2014-06-15 21:09:49    阅读次数:189
java实战应用:MyBatis实现单表的增删改
MyBatis 是支持普通 SQL查询,存储过程和高级映射的优秀持久层框架。MyBatis 消除了几乎所有的JDBC代码和参数的手工设置以及结果集的检索。MyBatis 使用简单的 XML或注解用于配置和原始映射,将接口和 Java 的POJOs(Plain Old Java Objects,普通的 Java对象)映射成数据库中的记录...
分类:编程语言   时间:2014-06-15 20:01:03    阅读次数:299
Combination Sum
题目 Given a set of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T. The same repeated number may be chosen from C un...
分类:其他好文   时间:2014-06-15 20:00:18    阅读次数:185
Combination Sum II
题目 Given a collection of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T. Each number in C may only be used once in...
分类:其他好文   时间:2014-06-15 19:24:21    阅读次数:229
老调重弹:JDBC系列 之 <JDBC层次结构和基本构成>
前沿 最近在研究Mybatis框架,由于该框架基于JDBC,想要很好地理解和学习Mybatis,必须要对JDBC有较深入的了解。所以便把JDBC 这个东东翻出来,好好总结一番,作为自己的笔记,也是给读者一个参考~~~...
分类:数据库   时间:2014-06-15 19:13:23    阅读次数:1384
Search Insert Position
题目 Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in order. You may assume no duplicates i...
分类:其他好文   时间:2014-06-15 17:27:16    阅读次数:251
My Sql 高效分页
/* *普通分页 *在数据文件上偏移1000000查出10条 */ select * from zoldesk_92game_net_ecms_bj where classid=303 ORDER BY id ASC LIMIT 1000000,10 /* *高效分页 *1、在索引上查出起始索引 *2、从起始索引上查出10条 */ SELECT * from zoldesk_9...
分类:数据库   时间:2014-06-15 15:47:31    阅读次数:272
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!