出现乱码需要检查的项目:数据库编码、文件本身的字符集、html解析的字符集,如若上述项目编码一致仍然出现乱码,查看一下浏览器的编码,如果和设置的不一样说明上述设置有部分未成功,可以尝试使用header()函数再转化一下。FYI:1.
header("Content-type: text/html; ...
分类:
Web程序 时间:
2014-05-08 21:28:22
阅读次数:
331
当使用EF中context.SaveChanges()的时候会报一串让查看详细信息的错误,这个错误不是真正的报错原因,如果想看真正的原因,要关掉EF的验证,如下:context.Configuration.ValidateOnSaveEnabled
= false;后在调用SaveChanges()...
分类:
其他好文 时间:
2014-05-08 21:27:51
阅读次数:
256
MySQL分区的限制? 只能对数据表的整型列进行分区源码天空,或者数据列可以通过分区函数转化成整型列?
最大分区数目不能超过1024? 如果含有唯一索引或者主键,则分区列必须包含在所有的唯一索引或者主键在内? 不支持外键?
不支持全文索引(fulltext)按日期进行分区很非常适合,因为很多日期函数...
分类:
数据库 时间:
2014-05-08 21:20:59
阅读次数:
417
left join #左连接又叫外连接 left join
返回左表中所有记录和右表中连接字段相等的记录test_user表phpcvs表SQL: select * from test_user left join
phpcvs on test_user.id=phpcvs.id执行结果如下图:.....
分类:
数据库 时间:
2014-05-08 21:08:56
阅读次数:
445
using System;using System.Collections.Generic;using
System.Linq;using System.Text;using System.Threading.Tasks;using
System.IO;namespace DirectoryCopy...
分类:
其他好文 时间:
2014-05-08 20:30:59
阅读次数:
381
using System;using System.Collections.Generic;using
System.Linq;using System.Text;using System.Threading.Tasks;using System.IO;using
System.Net;using ...
分类:
其他好文 时间:
2014-05-08 20:30:34
阅读次数:
389
IE10下的Input Text和谷歌下面的 input search
一旦输入内容,会在最右端出现一个叉号,点击后,内容就会自动清空,看似方便,其实有些场景并不需要,需要写代码清除掉。代码如下:input::-webkit-search-cancel-button{display:
none;} ...
分类:
其他好文 时间:
2014-05-08 20:15:33
阅读次数:
644
在MySQL中的ORDER
BY有两种排序实现方式:1、利用有序索引获取有序数据2、文件排序在使用explain分析查询的时候,利用有序索引获取有序数据显示Using
index。而文件排序显示Using filesort。1.利用有序索引获取有序数据取出满足过滤条件作为排序条件的字段,以及可以直接...
分类:
数据库 时间:
2014-05-08 19:47:21
阅读次数:
572
登陆mysql
harvey@harvey-Virtual-Machine:~/ruby/mydiary$ mysql -u root -pEnter password:
Welcome to the MySQL monitor. Commands end with ; or \g. 查看所有的数据...
分类:
数据库 时间:
2014-05-07 20:06:47
阅读次数:
452
using System;using System.Collections;using
System.Collections.Generic;using System.IO;using System.Linq;using
System.Text;using System.Threading.Task...
分类:
其他好文 时间:
2014-05-07 19:10:55
阅读次数:
387