PHP解决乱码问题只需在连接后加入mysql_query("set names 'gbk'") 就OK!如: $conn = mysql_connect("localhost","root",""); mysql_query("set names 'gbk'");
分类:
其他好文 时间:
2014-10-12 18:54:58
阅读次数:
783
Given a set of distinct integers, S, return all possible subsets.
Note:
Elements in a subset must be in non-descending order.The solution set must not contain duplicate subsets.
For exa...
分类:
其他好文 时间:
2014-10-12 18:17:08
阅读次数:
242
zencart重置用户ID为99的登录密码为aaaaaaaupdate customers set customers_password='1ebf0e689c7d44a19e4d0070ab381f81:52' where customers_id=99;
分类:
数据库 时间:
2014-10-12 17:52:28
阅读次数:
249
查看字符集
select userenv('language') from dual;
修改字符集(逐条执行即可)
sqlplus "/as sysdba";
shutdown immediate;
startup mount;
alter system enable restricted session;
alter system set job_queue_pr...
分类:
数据库 时间:
2014-10-12 17:41:08
阅读次数:
227
题目链接:http://poj.org/problem?id=2245思路: 无重复元素组合组合问题,使用暴力枚举法,注意剪枝条件。代码:#include using namespace std;const int MAX_N = 15;int n, k = 6;int Set[MAX_N], A....
分类:
其他好文 时间:
2014-10-12 15:28:58
阅读次数:
197
1.mysql命令行乱码:在mysql命令行输入 set names utf8---utf8要与数据库的字符集编码方式一样,表示‘客户端显示’或向‘服务器发送’的字符集编码方式,mysql命令行退出后,重新打开,字符集编码方式又变为默认值,需要重新设置客户端字符集编码方式,2.查看字符集默认编码放式...
分类:
数据库 时间:
2014-10-12 11:06:08
阅读次数:
201
WM_CAP_UNICODE_START= WM_USER+100; //开始 WM_CAP_GET_CAPSTREAMPTR= (WM_CAP_START+ 1); //获得 CAPSTR EAMPTR WM_CAP_SET_CALLBACK_ERROR= (WM_CAP_START+ 2); //设置收回错误 WM_CAP_SET_CALLBACK_STATUS= ...
分类:
其他好文 时间:
2014-10-12 10:34:38
阅读次数:
208
The set [1,2,3,…,n] contains a total of n! unique permutations.By listing and labeling all of the permutations in order,We get the following sequence ...
分类:
其他好文 时间:
2014-10-12 10:10:07
阅读次数:
217
封装 字段:存储数据,访问修饰符应该设置为private私有的string _name;属性:保护字段,对字段的取值和赋值进行限定public string Name{ get { return _name; } set { _name = value; }}构造函数:初始化对象,当创建...
分类:
其他好文 时间:
2014-10-12 02:22:57
阅读次数:
121
1. environment for gowe don't need to set GOROOT, seehttp://dave.cheney.net/2013/06/14/you-dont-need-to-set-goroot-reallyJust add the following lines ...
分类:
系统相关 时间:
2014-10-12 01:50:27
阅读次数:
366