码迷,mamicode.com
首页 >  
搜索关键字:mybatis where    ( 33957个结果
CoreData用法三: NSPredicate在CoreData中的使用
NSPredicate在CoreData中常用作查询使用,相当于sql语句中的where查询子句。 最常用的方法为: NSPredicate *ca = [NSPredicate predicateWithFormat:(NSString *), ...]; 比如我们要查询student表中name=“jjy”的信息,我们可以这样去用NSPredicate NSEntityDescript...
分类:其他好文   时间:2014-06-05 10:43:20    阅读次数:269
[ORACLE]管理方面的脚本收集
-----------------------------Cryking原创------------------------------ -----------------------转载请注明出处,谢谢!------------------------  1.查询AWR相关的视图名称 SELECT table_name FROM dba_tables t WHERE table_...
分类:数据库   时间:2014-06-05 09:07:51    阅读次数:427
[leetcode]Word Break II @ Python
原题地址:https://oj.leetcode.com/problems/word-break-ii/题意:Given a stringsand a dictionary of wordsdict, add spaces insto construct a sentence where each ...
分类:编程语言   时间:2014-06-03 07:13:21    阅读次数:339
[leetcode]Gas Station @ Python
原题地址:https://oj.leetcode.com/problems/gas-station/题意:There areNgas stations along a circular route, where the amount of gas at stationiisgas[i].You ha...
分类:编程语言   时间:2014-05-31 16:58:18    阅读次数:259
Hello Mybatis 02 mybatis generator
接着上一篇文章通过Mybatis完成了一个User的CRUD的功能之后,这篇开始还需要建立一个Blog类,这样就可以模拟一个简单的微博平台的数据库了。数据库准备首先我们,还是需要在数据库中新建一个表blog 1 CREATE TABLE `blog`.`blog` ( 2 `b_id` INT .....
分类:其他好文   时间:2014-05-31 14:01:03    阅读次数:215
sql(join中on与where区别)
left join :左连接,返回左表中所有的记录以及右表中连接字段相等的记录。right join :右连接,返回右表中所有的记录以及左表中连接字段相等的记录。inner join: 内连接,又叫等值连接,只返回两个表中连接字段相等的行。full join:外连接,返回两个表中的行:left jo...
分类:数据库   时间:2014-05-31 08:05:46    阅读次数:318
mysql日期比较
做的接口中用到日期比较,要返回某段时间内的数据列表。数据表中字段为“end_time”,时间格式为 2014-05-30 13:12:10,想查截止报名时间的数据。select 字段名 from 表 where end_time >当前时间 ;mysql数据表中存放时间字段格式date,dateti...
分类:数据库   时间:2014-05-31 07:40:05    阅读次数:556
C# - 简单介绍TaskScheduler
task Scheduler根据定义The task Scheduler by the definition blurb.“Is the class where the usage context is within the task libraries. “它的作用像是WPF/Winform时代的...
分类:其他好文   时间:2014-05-31 05:55:17    阅读次数:312
综合使用union和limit区分结果并限制返回结果集的条数
select * from channel where pid=0 union select * from channel where pid=1 union select * from channel where pid=3 limit 5,10这里的limit限制了返回的union(合并)后的结...
分类:其他好文   时间:2014-05-31 01:47:26    阅读次数:218
20140530-MySQL插入中文问题再做笔记
20140530-MySQL插入中文问题再做笔记 1、脚本语句 导入之前,先charset gbk。 修改表字段编码: 注意:这里用导入的方式插入的数据,控制台会报错。在我们的客户端工具中执行,就不会报错了。 2、MyBatis中,xml文件引入成为mapper的配置: 3、写junit测试类的时候...
分类:数据库   时间:2014-05-30 15:02:22    阅读次数:313
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!