PHPCMS分页的用法前面需要有引用的list,代码如下:{pc:content action="lists" catid="11" order="id DESC" thumb="" moreinfo="" page="$page" num="4" cache="3600" } {loop $...
分类:
Web程序 时间:
2014-08-21 18:45:54
阅读次数:
281
Oracle数据库中Select语句语法及介绍SELECT [ ALL | DISTINCT ] ,[,…][WHERE ][GROUP BY [HAVING]][ORDER BY [ASC | DESC]]语句说明:[]方括号为可选项[GROUP BY [HAVING]]指将结果按的值进行分组.....
分类:
数据库 时间:
2014-08-21 16:45:54
阅读次数:
292
两者的区别:Unicode规范中有一个BOM的概念。BOM——Byte Order Mark,就是字节序标记。在这里找到一段关于BOM的说明:在UCS 编码中有一个叫做"ZERO WIDTH NO-BREAK SPACE"的字符,它的编码是FEFF。而FFFE在UCS中是不存在的字符,所以不应该出现...
分类:
其他好文 时间:
2014-08-21 16:41:14
阅读次数:
177
提高数据库处理查询速度1、对查询进行优化,应尽量避免全表扫描,首先应考虑在 where 及 order by 涉及的列上建立索引。2、应尽量避免在 where 子句中对字段进行 null 值判断,否则将导致引擎放弃使用索引而进行全表扫描,如: select id from t where num ....
分类:
数据库 时间:
2014-08-21 16:36:34
阅读次数:
218
题目链接:http://poj.org/problem?id=1423思路:如果用普通方法做肯定会超时,数据也存不下,只能用数学方法来优化。这里用到了斯特林公式。秒出~~公式为 n! = log10(sqrt(2*pi*n)) + n * log10(n/e)这个公式只能求出n!的估算值,这里还需要...
分类:
其他好文 时间:
2014-08-21 14:45:24
阅读次数:
162
@Select("SELECT * FROM wc_homework WHERE organization_id=#{classId} ORDER BY createtime DESC LIMIT #{start},#{count}")
@Results({
@Result(column = "course_id", property = "course_id"...
分类:
其他好文 时间:
2014-08-21 00:12:43
阅读次数:
227
1、添加网络访问权限
2、webview添加全屏支持
developer官方文档关于html5支持视频播放描述如下:In order to support inline HTML5 video in your application, you need to have hardware acceleration turned on, and set a WebChrom...
分类:
移动开发 时间:
2014-08-20 22:41:33
阅读次数:
403
Minimum Cost
Time Limit: 4000MS
Memory Limit: 65536K
Total Submissions: 13531
Accepted: 4635
Description
Dearboy, a goods victualer, now comes to a big problem, and he...
分类:
其他好文 时间:
2014-08-20 21:09:52
阅读次数:
238
declare @time datetimedeclare @ms intset @time= getdate()select ID,name from (select row_number() over(order by ID) as rowNum,* from dbo.testb) as t ....
分类:
数据库 时间:
2014-08-20 21:00:33
阅读次数:
191
Given a collection of integers that might contain duplicates, S, return all possible subsets.Note:Elements in a subset must be in non-descending order...
分类:
其他好文 时间:
2014-08-20 19:37:12
阅读次数:
175