Connect("localhost", "root", "", "php100")or die("错误");$db->Execute("set names 'UTF8'");$query=$db->execute("select * from `php100`");while($row=$quer...
分类:
数据库 时间:
2014-06-28 13:59:08
阅读次数:
294
mysql_fetch_row是从结果集取出1行数组,作为枚举mysql_fetch_array是从结果集取出一行数组作为关联数组,或数字数组,两者兼得eg:$sql="selectabc,deffroma";$res=mysql_query($sql);那么:$row=mysql_fetch_ro...
分类:
数据库 时间:
2014-06-25 23:15:58
阅读次数:
272
一、jQuery - AJAX 简介AJAX = 异步 JavaScript 和 XML(Asynchronous JavaScript and XML)。AJAX 是与服务器交换数据的艺术,它在不重载全部页面的情况下,实现了对部分网页的更新。Query 提供多个与 AJAX 有关的方法。通过 jQ...
分类:
Web程序 时间:
2014-06-24 14:55:38
阅读次数:
184
location.href="url?p="+"value";onclick="location.href='Card_query_where?query_id='+query_id.value"
分类:
其他好文 时间:
2014-06-24 12:35:22
阅读次数:
197
使用线段树预处理,可以使得查询RMQ时间效率在O(lgn)。
线段树是记录某范围内的最小值。
标准的线段树应用。
Geeks上只有两道线段树的题目了,而且没有讲到pushUp和pushDown操作,只是线段树的入门了。
参考:http://www.geeksforgeeks.org/segment-tree-set-1-range-minimum-query/
我修改了一下他的程序,使用...
分类:
其他好文 时间:
2014-06-22 18:08:05
阅读次数:
217
Dynamic Rankings
Time Limit: 10 Seconds
Memory Limit: 32768 KB
The Company Dynamic Rankings has developed a new kind of computer that is no longer satisfied with the query like to simply...
分类:
其他好文 时间:
2014-06-22 17:04:16
阅读次数:
182
1、关键类
Lucene的搜索过程中涉及的主要类有以下几个:
(1)IndexSearcher:执行search()方法的类
(2)IndexReader:对索引文件进行读操作,并为IndexSearcher提供搜索接口
(3)Query及其子类:查询对象,search()方法的重要参数
(4)QueryParser:根据用户输入的搜索词汇生成Query对象。
(5)TopDocs:s...
分类:
其他好文 时间:
2014-06-22 16:56:47
阅读次数:
187
Is it a dream that you can access text files using SQL statements?
But now, it is true that DB Query Analyzer provides you a power tool which can help you realize the dream above. I’ll give you a sample to show its powerful function. What’s more, the p...
分类:
数据库 时间:
2014-06-21 18:41:54
阅读次数:
510
各种查询 方式一:使用QueryParser与查询语法。(会使用分词器) MultiFieldQueryParser 查询字符串 ------------------------> Query对象 例如: 上海 AND 天气 上海 OR 天气 上海新闻...
分类:
其他好文 时间:
2014-06-20 16:24:52
阅读次数:
241