sql中经常用like进行模糊查询,而模糊查询就要用到百分号“%”,下划线“_”这些通配符,其中“%”匹配任意多个字符,“_”匹配单个字符。 如果我们想要模糊查询带有通配符的字符串,如“60%”,“user_name”,就需要对通配符进行转义。如下,斜杠后面的%就不再是通配符,斜杠之前的%仍然...
分类:
数据库 时间:
2015-08-06 10:41:15
阅读次数:
705
Open Source 开发工具集转自:http://www.linuxforum.net原作者:gogoliu(Pooh-Bah)编辑器:vi:老牌编辑器,在各个unix和unix-like平台都可以找到emacs:GNU项目开发的编辑器,功能强大扩展性强,绝对不是一个编辑器那么简单代码打补丁工具...
分类:
其他好文 时间:
2015-08-06 00:18:18
阅读次数:
154
Problem DescriptionDo you like playing basketball ? If you are , you may know the NBA Skills Challenge . It is the content of the basketball skills . ...
分类:
其他好文 时间:
2015-08-05 20:03:14
阅读次数:
134
ZigZag Conversion
The string "PAYPALISHIRING" is written in a zigzag pattern on a given number
of rows like this: (you may want to display this pattern in a fixed font for better legi...
分类:
其他好文 时间:
2015-08-05 16:30:25
阅读次数:
200
//php文件pageSize = 5; //每页显示条数 $sql = "SELECT * FROM `#@__archives` WHERE flag LIKE '%c%' ORDER BY sortrank DESC"; //sql查询 $dlist->SetTempl...
分类:
其他好文 时间:
2015-08-05 12:39:28
阅读次数:
101
Usage:logcat [options] [filterspecs]options include:-s Set default filter to silent. Like specifying filterspec '*:s'-f Log to file. Default to stdou....
分类:
其他好文 时间:
2015-08-05 12:20:49
阅读次数:
116
安装环境:Ubuntu12.04、nginx1.9.0
Nginx ("engine x") 是一个高性能的 HTTP 和 反向代理 服务器,也是一个 IMAP/POP3/SMTP 服务器。
Nginx是一款轻量级的Web 服务器/反向代理服务器及电子邮件(IMAP/POP3)代理服务器,并在一个BSD-like 协议下发行。由俄罗斯的程序设计师Igor Sysoev所开发,供俄国大型的入口...
分类:
系统相关 时间:
2015-08-04 23:05:16
阅读次数:
216
1.查询mysql所支持的存储引擎 第一种方法:show engines \G 第二种方法 show variables like "have%";2.设置和修改存储引擎 创建表的时候就可以设置 方法一:create table c(id int primary key) engine=myisa....
分类:
数据库 时间:
2015-08-04 22:28:48
阅读次数:
188
F. FloodTime Limit: 20 SecMemory Limit: 256 MB题目连接http://codeforces.com/gym/100685/problem/FDescriptionWe all know that King Triton doesn't like us an...
分类:
其他好文 时间:
2015-08-04 20:49:27
阅读次数:
340
1.配置模糊查询的路由Route::get('widget',function(){$filter=[['id','>','0'],['title','like','%aa%']];$data=Widget::datalist("article","widget.list",$filter,4);/...
分类:
其他好文 时间:
2015-08-04 10:55:23
阅读次数:
125