03 2014 档案

摘要:This text will be center-aligned.或者可以把一个div给center了,例如将一个html表格给center表格的代码 阅读全文
posted @ 2014-03-16 15:28 zmiao 阅读(154) 评论(0) 推荐(0) 编辑
摘要:请看sql_field_string的文档说明: # combined field plus attribute declaration (from a single column) # stores column as an attribute, but also indexes it as a full-text field # # sql_field_string = author我们不需要attribute属性,不用管。只要在sql_query中选出相应的column就行了,就可以在php中使用extended_query_mode来进行query了,相应... 阅读全文
posted @ 2014-03-15 08:17 zmiao 阅读(1135) 评论(0) 推荐(0) 编辑
摘要:#Server Connection to MySQL:import MySQLdbconn = MySQLdb.connect(host= "localhost", user="root", passwd="newpassword", db="engy1")x = conn.cursor()try: x.execute("""INSERT INTO anooog1 VALUES (%s,%s)""",(188,90)) conn.commit()exce 阅读全文
posted @ 2014-03-13 12:53 zmiao 阅读(211) 评论(0) 推荐(0) 编辑
摘要:http://stackoverflow.com/questions/2698401/how-to-store-mysql-query-results-in-another-tableCREATE TABLE another_table SELECT /your query goes here/多建几张中间过渡用的表,无所谓的。 阅读全文
posted @ 2014-03-13 08:03 zmiao 阅读(148) 评论(0) 推荐(0) 编辑
摘要:http://stackoverflow.com/questions/17494784/searching-a-particular-index-using-sphinx-from-multiple-indexes-through-php-scfor one index$res = $cl->Query($query,"src1"); for multiple indexes$res = $cl->Query($query,"src1 src2 src3 src4"); 阅读全文
posted @ 2014-03-12 07:38 zmiao 阅读(222) 评论(0) 推荐(0) 编辑
摘要:http://stackoverflow.com/questions/9935690/mysql-datetime-range-query-issueSELECT * FROM util_audit WHERE `DATED` BETWEEN "2012-03-15" AND "2012-03-31"; 阅读全文
posted @ 2014-03-12 07:37 zmiao 阅读(385) 评论(0) 推荐(0) 编辑
摘要:http://stackoverflow.com/questions/372885/how-do-i-connect-to-a-mysql-database-in-python1, 下载MySQLdb:http://sourceforge.net/projects/mysql-python/files/2, 如下python代码#!/usr/bin/pythonimport MySQLdbdb = MySQLdb.connect(host="localhost", # your host, usually localhost user="john", # 阅读全文
posted @ 2014-03-12 03:59 zmiao 阅读(155) 评论(0) 推荐(0) 编辑
摘要:http://www.phpjabbers.com/php--mysql-select-data-and-split-on-pages-php25.htmlreturns 20 records sorted by name starting from the first record:$sql = "SELECT * FROM students ORDER BY name ASC LIMIT 0, 20";thisnext queryshows 20 records sorted again by name but this time it will start from 阅读全文
posted @ 2014-03-11 10:52 zmiao 阅读(208) 评论(0) 推荐(0) 编辑
摘要:publn_date is multi-valuedsetServer('localhost', 9312);$sc->setRankingMode(SPH_RANK_NONE);$sc->SetLimits(0,73180000,1000000);$sc->SetFilterRange("publn_date", strtotime('1992-04-01'), strtotime('1998-02-01'), $exclude=false);$sc->SetMatchMode(SPH_MATCH_E 阅读全文
posted @ 2014-03-08 05:30 zmiao 阅读(144) 评论(0) 推荐(0) 编辑
摘要:mysql> select t.appln_id, t.filing_date, t.appln_kind, t.people, GROUP_CONCAT(pu.publn_kind) from (select a.appln_id, a.filing_date, a.appln_kind, GROUP_CONCAT(p.pers_name) as people from appln as a left join pers_appln as pa on a.appln_id= pa.appln_id left join person as p on pa.pers_id= p.pers_ 阅读全文
posted @ 2014-03-06 09:04 zmiao 阅读(135) 评论(0) 推荐(0) 编辑
摘要:http://jingyan.baidu.com/article/7e440953fac5442fc1e2ef56.html简单点说电容屏就是你摸哪,哪就漏电,屏幕就有反应了。电阻屏就是你摸哪,哪就连电,屏幕就有反应了。 阅读全文
posted @ 2014-03-05 15:15 zmiao 阅读(197) 评论(0) 推荐(0) 编辑
摘要:http://sphinxsearch.com/forum/view.html?id=3187> I think I may have found a bug.Yep, it looks weird. The problem is probably that you have two attributes (MVA andtimestamp) with the same name.> $this->sphinx->SetFilterRange("starts", $startdateunix, $enddateunix);Yes, that' 阅读全文
posted @ 2014-03-05 08:48 zmiao 阅读(197) 评论(0) 推荐(0) 编辑
摘要:table 1:+----+---------+| id | content |+----+---------+| 1 | num1 || 2 | num2 || 3 | num3 || 4 | num4 || 5 | num5 |+----+---------+table 2:+----------+---------+-----------+| appln_id | pers_id | pers_name |+----------+---------+-----------+| 1 | 1 | Jack || ... 阅读全文
posted @ 2014-03-01 05:01 zmiao 阅读(273) 评论(0) 推荐(0) 编辑
摘要:http://www.codeproject.com/Articles/33052/Visual-Representation-of-SQL-Joins 阅读全文
posted @ 2014-03-01 03:58 zmiao 阅读(97) 评论(0) 推荐(0) 编辑