Counting sheep...Description:Consider an array of sheep where some sheep may be missing from their place. We need a function that counts the number of...
分类:
其他好文 时间:
2015-06-24 14:32:55
阅读次数:
131
在工作中遇到个问题,在使用lamda查询数据的时候,需要添加一个时间判断, DateTime.AddDays(3) >e.ExpirationDate例如:list = Context.VoucherUserSignPLView.Where(e => e.IsUse == isUse && e.Ex...
分类:
其他好文 时间:
2015-06-24 12:43:45
阅读次数:
255
1、创建sequence2、删除sequence3、查询有哪些sequence select * from user_objects where object_type='SEQUENCE';4、查询某个sequence的进度 http://blog.chinaunix.net/uid-2037.....
分类:
数据库 时间:
2015-06-24 12:28:35
阅读次数:
137
Description
Squares and rectangles fascinated the famous Dutch painter Piet Mondriaan. One night, after producing the drawings in his 'toilet series' (where he had to use his toilet paper to draw o...
分类:
其他好文 时间:
2015-06-24 11:04:07
阅读次数:
122
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 as...
分类:
其他好文 时间:
2015-06-24 09:23:34
阅读次数:
116
原文:ThinkPhp学习11一、常用连贯操作 1.where 帮助我们设置查询条件 2.order 对结果进行排序 $arr=$m->order('id desc')->select(); $arr=$m->order(array('id'=>'desc','sex'=>'asc'))->sele...
分类:
Web程序 时间:
2015-06-24 01:54:57
阅读次数:
121
原文:ThinkPhp学习08一、普通查询方式 a、字符串 $arr=$m->where("sex=0 and username='gege'")->find(); b、数组 1 // 2.SELECT * FROM `tp_user` WHERE ( `sex` = 0 ) AND ( `user...
分类:
Web程序 时间:
2015-06-24 01:54:26
阅读次数:
129
原文:ThinkPhp学习09三、区间查询 $data['id']=array(array('gt',4),array('lt',10));//默认关系是 and 的关系 //SELECT * FROM `tp_user` WHERE ( (`id` > 4) AND (`id` 4) AND (`...
分类:
Web程序 时间:
2015-06-24 00:44:22
阅读次数:
171
原文:ThinkPHP Where 条件中使用表达式Where 条件表达式格式为: $map['字段名'] = array('表达式', '操作条件'); 其中 $map 是一个普通的数组变量,可以根据自己需求而命名。上述格式中的表达式实际是运算符的意义: ThinkPHP运算符 与 SQL运算符 ...
分类:
Web程序 时间:
2015-06-24 00:28:44
阅读次数:
143
联接条件可在FROM或WHERE子句中指定,建议在FROM子句中指定联接条件。WHERE和HAVING子句也可以包含搜索条件,以进一步筛选联接条件所选的行。联接可分为以下几类:内联接(典型的联接运算,使用像=或之类的比较运算符)。包括相等联接和自然联接。内联接使用比较运算符根据每个表共有的列的值匹配...
分类:
数据库 时间:
2015-06-23 22:53:04
阅读次数:
160