编码的种类SHOW VBRIABLES LIKE '%character%';1) character_set_client : MySQL Server 假定client传输数据过来的时候的编码2) character_set_connection: Server收到SQL语句时,将其转换成的编码...
分类:
数据库 时间:
2014-08-01 19:07:52
阅读次数:
275
在sql语句中使用 like模糊查询时,应该尽量避免%%,因为模糊查询是比较慢的,当出现这样的情况时,应该考虑优化。举个例子:我在表中查询2012 年创建的记录SELECT * FROM `component_data` WHERE creation_date LIKE '2012%'; 得到的时....
分类:
数据库 时间:
2014-08-01 19:05:32
阅读次数:
276
1.查看数据库支持的所有字符集 show character set;或show char set; 2.查看当前状态 里面包括当然的字符集设置 status或者\s 3.查看系统字符集设置,包括所有的字符集设置 show variables like 'char%';4.查看数据表中字符集设置 ....
分类:
数据库 时间:
2014-08-01 19:05:22
阅读次数:
273
MySQL数据库like查询中文出现不准确的解决方法2013-02-18 1,502阅 评论( 暂无评论 )更多0Mysql数据库like查询中文出现不准确的解决方法,中文检索有时候有点蛋疼,Mysql数据库like查询中文有时候会出现不准确。而且,在进行like检索时,有时候会返回一些与查询词不....
分类:
数据库 时间:
2014-08-01 18:36:32
阅读次数:
236
sqlserver中like中文不匹配问题解决就这么简单[ 2007-9-15 14:02:00 | By: 逝水无痕 ]MS-SQL Server select*fromBookwhereBookNamelike'%C语言%' 在SQL2000下能正常找到,在2005下不能,因为语句中的中文字体,...
分类:
数据库 时间:
2014-08-01 18:30:22
阅读次数:
249
Problem Description
Many years ago , in Teddy’s hometown there was a man who was called “Bone Collector”. This man like to collect varies of bones , such as dog’s , cow’s , also he went to the grav...
分类:
其他好文 时间:
2014-08-01 16:12:41
阅读次数:
264
Problem Description
Bessie has gone to the mall's jewelry store and spies a charm bracelet. Of course, she'd like to fill it with the best charms possible from the N (1 ≤ N ≤ 3,402) available c...
分类:
其他好文 时间:
2014-08-01 16:12:31
阅读次数:
248
Next time you see a numeric problem has a too straightforward solution, think about optimized one.Like this one: recursion\iteration is tooo slow. SoD...
分类:
其他好文 时间:
2014-08-01 06:57:01
阅读次数:
279
Problem Description:
The string "PAYPALISHIRING" is written in a zigzag pattern
on a given number of rows like this: (you may want to display this pattern in a fixed font for better legibility)...
分类:
其他好文 时间:
2014-08-01 00:11:50
阅读次数:
285
Memcached的批量删除,向来是Memcached使用者很头疼的事情,因为Memcached采取的缓存方案是哈希表结构,所以没有办法实现delete from tablename where key like ‘%XX%’类似这样的批量删除功能。所以不得不自己采...
分类:
其他好文 时间:
2014-07-31 13:48:46
阅读次数:
174