一、service引导刚开始学习Angular的时候,经常被误解和被初学者问到的组件是 service(), factory(), 和 provide()这几个方法之间的差别。This is where we'll start the twenty-five days of Angular cale...
分类:
Web程序 时间:
2015-11-17 10:56:45
阅读次数:
181
需要知道sql中关键字的执行顺序。FROM-> ON->JOIN-> WHERE->GROUP BY-> HAVING->SELECT-> DISTINCT->ORDER BY->LIMITon在join前边。join在where前边。知道这两点,那就好说了。注意join中的on是对关联表起作用,不...
分类:
数据库 时间:
2015-11-16 22:54:45
阅读次数:
347
1. find --> 返回 object or empty ex: $p?=?Project::find($id);if(empty($p))?{
??dd(‘project?is?empty‘);
} get --> 返回object , 透过count 方法判断 ex: $p?=?Project::where(‘user_id‘,?‘=‘,?$...
分类:
数据库 时间:
2015-11-16 21:19:15
阅读次数:
287
今天需要做一个查询,当天时间按时间降序排列排在最前面,然后是其他的按时间降序排列排在当天的时间后面。select * from ( select * from Table where time like '2015-11-16%' order by timedesc ) a union...
分类:
编程语言 时间:
2015-11-16 19:20:51
阅读次数:
144
delete from information where id in (select id from (select max(id) as id,count(*) as ccc from information GROUP BY encoding HAVING ccc>1 ) as tab)
分类:
数据库 时间:
2015-11-16 17:36:45
阅读次数:
159
static List GetPageList(Func whereLambda,Func orderLambda,int pageSize,int pageIndex) where T:class { EFEntities context=new EFEnti...
分类:
其他好文 时间:
2015-11-16 17:26:50
阅读次数:
132
选择最有效率的表名顺序; where子句中的连接顺序; select子句中避免使用‘*‘; 用where子句替换having子句; 通过内部函数提高SQL效率; 避免在索引列上使用计算; 提高group by语句的效率,可以通过将不需要的记...
分类:
数据库 时间:
2015-11-16 15:59:57
阅读次数:
240
MySQL deadlock http://dev.mysql.com/doc/refman/5.6/en/glossary.html#glos_deadlock Deadlock A situation where different transactions are unable to proceed, because each holds a lock that the other n...
分类:
数据库 时间:
2015-11-16 12:46:44
阅读次数:
314
1、null与任何运算符运算后都为null 普通的值一般都可能进行运算符操作,但例如:ID列为int,所以可以这样:ID=ID+1等,但如果一列的值为null,null+1=null 例如 update testNull set b=b+1 where b is null 查询后发...
分类:
数据库 时间:
2015-11-16 12:43:22
阅读次数:
171
Oracle中:1 Select Aae1402 From Ab073 Where Aab001 = Pi_Aab0014 ...
分类:
其他好文 时间:
2015-11-16 12:34:34
阅读次数:
194