数据库表,数据库名大小写铭感问题mysql lower-case-table-names参数线上有业务用到开源的产品,其中SQL语句是大小写混合的,而建表语句都是小写的,mysql默认设置导致这些执行失败。就需要设置忽略大小写。设置lower-case-table-names=1,重启mysql实例...
分类:
其他好文 时间:
2014-09-17 11:45:02
阅读次数:
280
<?php
//数据库连接
$conn = mysql_connect(‘localhost‘, ‘root‘, ‘‘);
mysql_select_db(‘test‘, $conn);
mysql_query("SET NAMES GBK");
/*
支持事务的表必须是InnoDB类型
一段事务中只能出现一次:
mysql_que...
分类:
Web程序 时间:
2014-09-17 10:30:52
阅读次数:
189
1. simple exampleimport pymongofrom pymongo import MongoClientcon=MongoClient('localhost',27017)db=con.db# database name "db"names=db.users # collecti...
分类:
数据库 时间:
2014-09-17 08:54:21
阅读次数:
243
模板模式特点:提取相同的特性放在基类中,而将不同的特性作为一个借口抽象出来,放到派生类中进行具体实现。Template.h内容 1 #ifndef Template_H_H 2 #define Template_H_H 3 4 #include 5 #include 6 using names...
分类:
其他好文 时间:
2014-09-16 20:34:51
阅读次数:
203
# get names of installed packages packs <- installed.packages() exc <- names(packs[,‘Package‘]) # get available package names av <- names(available.packages()[,1]) # create loooong string ins <- av...
分类:
其他好文 时间:
2014-09-16 19:15:51
阅读次数:
264
1. 修改元素值 second_node.set_value("miller");不对 必须second_node.first_child().set_value("miller");2. 小例子#include #include "pugixml.hpp"#include using names....
分类:
其他好文 时间:
2014-09-16 12:17:50
阅读次数:
311
c++namespace和linuxnamespaceNamespaces命名空间wikepedia定义:Ingeneral,anamespaceisacontainerforasetofidentifiers(alsoknownassymbols,names).[1][2]Namespacesprovidealevelofdirectiontospecificidentifiers,thusmakingitpossibletodistinguishbetweenidentifierswith..
分类:
编程语言 时间:
2014-09-15 11:30:20
阅读次数:
391
数组能够在单独的变量名中存储一个或多个值。一般都是存储一些相似的值有三种数组类型:数值数组带有数字 ID 键的数组关联数组数组中的每个 ID 键关联一个值多维数组包含一个或多个数组的数组数值数组数值数组存储的每个元素都带有一个数字 ID 键。可以使用不同的方法来创建数值数组:";$names = a...
分类:
Web程序 时间:
2014-09-14 23:38:57
阅读次数:
310
如果开发一个国际版的安卓应用软件,就需要各种语言包了,在新浪博客看到的,分享一下
语言缩写:
http://www.loc.gov/standards/iso639-2/php/code_list.php
国家地区缩写:
http://www.iso.org/iso/country_codes/iso_3166_code_lists/country_names_and_code_ele...
分类:
移动开发 时间:
2014-09-13 22:49:06
阅读次数:
429
Description
The little cat is so famous, that many couples tramp over hill and dale to Byteland, and asked the little cat to give names to their newly-born babies. They seek the name, and at the sa...
分类:
其他好文 时间:
2014-09-13 10:40:55
阅读次数:
197