今天调程序从数据库里取数据,一直去不出来,把日志里打出来的sql放到数据库里去执行,却又能
取出数据来,很是郁闷。
数据库是mysql的,一共128个库,通过某个字段分库。
后来发现要查的这条数据的分库字段被改过,按照程序里执行的去查,他就去了另外一个库去查询了(因为分库字段被改过)
而直接去数据库里去查,查询了所有的库,所以能查出数据来。
按照cobar的原则,查询条件带双引号是默认查所有的库,而单引号是按照分库字段去查相应的库。
比如:
1.查所有的库: select * from A where b="test"
2.查单库: select * from A where b='test' and 分库字段='cobar' ......
mastering Phpmyadmin
Beginning Php And Mysql程序设计
Beginning PHP and MySQL from Novice to Professional 3rd Edition
Head First PHP MySQL
MySQL入门经典
MySQL Stored Procedure Programming
MySQL Phrasebook: Essential Code and Commands
MySQL Crash Course
MySQL Database Design and Tuning
The Definitive Guide to MySQL5 3rd Edition
MySQL The Definitive Guide To Using Programming And Administering MySQL 3rd
Beginning MySQL
MySQL5.0 Certification Study Guide
PHP MySQL Everyday Apps For Dummies
Php和MySQL web开发
PHP And MySQL For Dynamic WebSites 2nd Edition
Beginning PHP5 Apache and MySQL Web Development
Core Web Application ......
原文
http://www.hetland.org/python/instant-hacking.php
Instant Hacking[译
文]
译者: 肯定来过
这是一篇简短
的关于python程序设计语言的入门教程,原文在这里,翻着词典翻译了来!
这是一份对编程艺术的简短介绍,其中的例子是用
python写成的。(如果你已经知道了该如何编程,但是想简单了解一下python,你可以查阅我的另一篇文章Instant Python。)这篇文
章已经被翻译为意大利、波兰、日本、塞尔维亚以及巴西葡萄亚语等许多种语言,而且正在被翻译为韩语。(译者:当然,现在已经包括了中文版本,只是作者并不
知道。)
这篇文章和如何闯入别人的计算机系统之类的东西无关。我不关注那类事情,所以请不要email问我那些东西。
注
意:要使此文中的例子正确运行,你应该把它们写在一个文本文件中,然后用解释器运行;不要试图直接在交互方式下运行它们--不是所有的都可以这样运
......
生成一个有N个元素的有随机整数n组成的列表,其中N和年的取值范围是(1<N<=5)
和(0<=n<100),显示这个列表的所有子集。
N个数字空有2en个子集,对于这N个数字在每个子集中来讲要么存在要么不存在,可以采用子集映射为2进制的算法。
例如[a,b]集合的子集:
空 ---- 00
a ---- 10
b ---- 01
ab ---- 11
因此问题简化为列出所有小于2en的数字的2进制形式,将其对应即可
#!/usr/bin/python
import random
def bin(x):
x=int(x)
if x==0:
return str(0)
else:
result=''
while x>0:
mod=x%2
x=x/2
result=str(mod)+result
return result
def getAllSubset(aList):
allSubset=[]
aListLen=len(aList)
combination=pow(2,aListLen)
for ......
Beginning Ruby from Novice To Perfessional
Head First Rails
Agile Web Development with Rails 3rd Edition(new)
Agile Web Development with Rails 3rd Edition
Agile Web Development with Rails 3rd Edition中文
Rails 快速上手中文教材
Ruby On Rails Web 开发之旅
Agile Web Development with Rails 2nd Edition
Best of Ruby Quiz
Rails Recipes
Ruby Cookbook
Ruby for Rails
Ruby 语言入门教程
Agile Web Development with Rails
Programming Ruby 2nd Edition
Rolling with Ruby on Rails
Ruby on Rails 实践
Ruby on Rails API
Ruby文档中心
Ruby Course
Ruby in a Nut shell
......
SQLite Database Browser
SQLite Database browser is a light GUI editor for SQLite databases, built on top of Qt. The main goal of the project is to allow non-technical users to create, modify and edit SQLite databases using a set of wizards and a spreadsheet-like interface.
Download Now!sqlitebrowser_200_b1_win.... (7.3 MB)ORView all files
http://sqlitebrowser.sourceforge.net
好东西,强烈推荐!分析M8的db数据时找到的。 ......