StringBuild sql=new StringBuild("select * from tb where 1=1")if(name!=""){ sql.Append("and name like '%"+name+"%'");}if(sex!=""){ sql.Append("and sex ...
分类:
其他好文 时间:
2015-11-14 19:15:54
阅读次数:
288
你是否好奇标识浏览器身份的User-Agent,为什么每个浏览器都有Mozilla字样?Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.94 Safari/537....
分类:
其他好文 时间:
2015-11-14 15:01:17
阅读次数:
586
with district as ( select * from Area where AbbrTW= N'中國' union all select a.* from Area a, district b where a.AreaNo like '2011%')--district1 as...
分类:
数据库 时间:
2015-11-13 13:02:55
阅读次数:
221
现在人们的网络生活已经离不开搜索了,遇到不懂的问题,想知道的事情,搜索一下,就知道答案。在app中,最常见的搜索情景就是搜索用户。只有几百,几千的用户量时,可以直接用用like这样的模糊查询,但是,如果数据有几百万,甚至上千万的时候,一次like查询数据库就堵了。到了一定量级的时候,不得不考虑使用专...
分类:
移动开发 时间:
2015-11-12 21:51:09
阅读次数:
233
介绍django model 的一些常用查询方式首先是一些文档性的帮助__exact 精确等于 like ‘aaa’__iexact 精确等于 忽略大小写 ilike ‘aaa’__contains 包含 like ‘%aaa%’__icontains 包含 忽略大小写 ilike ‘%aaa%’,...
分类:
编程语言 时间:
2015-11-11 01:14:05
阅读次数:
368
Problem DescriptionUniform Resource Identifiers (or URIs) are strings like http://icpc.baylor.edu/icpc/, mailto:foo@bar.org, ftp://127.0.0.1/pub/linux...
分类:
编程语言 时间:
2015-11-10 21:03:38
阅读次数:
434
create table 表名 like 要复制的表名 //复制表结构insert into 表名 select * from要复制的表名 //复制数据方法2,一般不推荐,如果后台加数据,可能会有损失,用于,一次性建成后不修改数据用create table 表名 select * from要复制的表...
分类:
数据库 时间:
2015-11-10 20:49:08
阅读次数:
221
-- 查看event是否开启? show variables like ‘%sche%‘;? -- 将事件计划开启? set global event_scheduler =1;
分类:
数据库 时间:
2015-11-09 19:21:52
阅读次数:
276
select * from table where target_text like "3";查找出来的都是target_text 为 3 的数据select * from table where target_text like "%3%";查找出来的都是target_text 包含 3 的数.....
分类:
数据库 时间:
2015-11-09 17:17:21
阅读次数:
244
Before moving to and describing how the kernel keeps track of the various processes in the system,we would like to emphasize the role of special data ...
分类:
其他好文 时间:
2015-11-09 07:08:21
阅读次数:
309