1.对查询进行优化,应尽量避免全表扫描,首先应考虑在 where 及 order by 涉及的列上建立索引。2.应尽量避免在 where 子句中对字段进行 null 值判断,否则将导致引擎放弃使用索引而进行全表扫描,如:select id from t where num is null可以在num...
分类:
数据库 时间:
2015-09-07 00:25:53
阅读次数:
298
你可以包括实际的字符“%”或“_”模式中利用例外条款,其中确定的转义字符。如果转义字符出现在模式在字符“%”或“_“Oracle将解释这个字符上的模式,而不是作为一种特殊的模式匹配字符。搜索的模式a_b在他们名字的员工:SELECT last_name FROM employees WH...
分类:
数据库 时间:
2015-09-06 20:02:54
阅读次数:
178
去美国旅游,或出国旅游,英语不精没关系,词汇量不多也没关系,但有一些实用的口语一定要学会哟~ 酒店住宿常用英文 I would like to have a morning Call at8:00 in the morning.我要早上8:00设定电话叫醒。 I'd like to order ro...
分类:
其他好文 时间:
2015-09-06 16:20:57
阅读次数:
200
方法一: 这个方法我正在用,呵呵,比较喜欢这种即时性的。Mysql5.0以上的版本可以支持将执行比较慢的SQL语句记录下来。mysql> show variables like 'long%'; 注:这个long_query_time是用来定义慢于多少秒的才算“慢查询”+--------------...
分类:
数据库 时间:
2015-09-06 12:33:45
阅读次数:
160
You can easily spend hours configuring the perfect dev environment with all the latest hotness like ES6 (and beyond) support, hot reloading, and a myr...
分类:
Web程序 时间:
2015-09-06 06:23:09
阅读次数:
509
innodb_buffer_pool_size 缓冲区的大小,一般为内存的70%-80%之间, 用来缓存表及索引数据,锁等级数据的最主要缓存空间。通过查看 show status like 'innodb_buffer_pool_%';innodb_log_file_size 日志文件大小,越大越好...
分类:
数据库 时间:
2015-09-05 15:01:05
阅读次数:
192
has a 代表的是对象和它的成员的从属关系。可以分为组合与聚合两种。 组合:表示两个对象是整体与部分的关系为强关系 聚合:表示两个对象是整体与部分的关系为弱关系is a 它是类继承关系,只是覆盖了父类的行为,没有多余的行为like a 它是一种继承关系,但是有自己的行为,区别于父类
分类:
其他好文 时间:
2015-09-04 17:09:25
阅读次数:
191
Flux has four major components: Stores, Dispatchers, Views, and Actions. These components interact less like a typical MVC and more like an Event Bus....
分类:
其他好文 时间:
2015-09-04 17:04:14
阅读次数:
252
http://stackoverflow.com/questions/771756/what-is-the-difference-between-cygwin-and-mingw As a simplification, it's like this:Compile something in Cy....
If you are using Linux and your are a big fan of shell and its other utilities like grep, ls, make and its compilers gcc and g++, and if you want thes...