安装了mysql。版本:5.5.28操作系统 :ubuntu 12.10mysql> show variables like 'character%';+--------------------------+----------------------------+| Variable_name ....
分类:
数据库 时间:
2015-11-19 18:11:34
阅读次数:
157
1.Have a smoke?2.Would you like a cigarette?3.Cigarettes?4.Let's go have a smoke.5.Do you smoke?6.Cigar or cigarette?7.Would you like to try one?8.Cou...
分类:
其他好文 时间:
2015-11-19 14:36:13
阅读次数:
132
1.如果条件中有or,即使其中有条件带索引也不会使用(这也是为什么尽量少用or的原因)注意:要想使用or,又想让索引生效,只能将or条件中的每个列都加上索引2.对于多列索引,不是使用的第一部分,则不会使用索引3.like查询是以%开头4.如果列类型是字符串,那一定要在条件中将数据使用引号引用起来,否...
分类:
数据库 时间:
2015-11-17 21:57:57
阅读次数:
447
If you'd like to build the Chromium Embedded Framework (a wrapper for Chromium, for creating browser-based applications) using Visual Studio 2013, you...
分类:
其他好文 时间:
2015-11-17 16:31:21
阅读次数:
220
Given a digit string, return all possible letter combinations that the number could represent.A mapping of digit to letters (just like on the telephon...
分类:
其他好文 时间:
2015-11-17 08:24:43
阅读次数:
199
HDS(11.16.2015):How to design an non-stop website like Google or Amazon?What design patterns are you using?Implement a queue with two stacks.Quick-sor...
分类:
其他好文 时间:
2015-11-17 06:52:04
阅读次数:
184
如果无论前端数据、后端数据都是uft-8编码,程序上找不出任何问题,但是仍然出现插入数据库乱码,那么有可能就是mysql数据库服务器本身字符集编码有问题 用mysql-front连接上数据库后执行:show variables like ‘...
分类:
数据库 时间:
2015-11-17 00:30:56
阅读次数:
196
今天需要做一个查询,当天时间按时间降序排列排在最前面,然后是其他的按时间降序排列排在当天的时间后面。select * from ( select * from Table where time like '2015-11-16%' order by timedesc ) a union...
分类:
编程语言 时间:
2015-11-16 19:20:51
阅读次数:
144
先来观察 iOS 的 User-Agent 串: iPhone 4.3.2 系统:Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_3_2 like Mac OS X; en-us)AppleWebKit/533.17.9 (KHTML, like Gecko) Ver...
分类:
移动开发 时间:
2015-11-16 12:13:15
阅读次数:
199
SQL的模糊查询在进行数据库查询时,有完整查询和模糊查询之分。一般模糊查询语句如下:SELECT 字段 FROM 表 WHERE 某字段 Like 条件其中关于条件,SQL提供了四种匹配模式:1,%:表示任意0个或多个字符。可匹配任意类型和长度的字符,有些情况下若是中文,请使用两个百分号(%%)表示...
分类:
数据库 时间:
2015-11-15 14:42:19
阅读次数:
184