码迷,mamicode.com
首页 >  
搜索关键字:where case when    ( 36516个结果
Codeforces Amusing Joke 题解
So, the New Year holidays are over. Santa Claus and his colleagues can take a rest and have guests at last. When two "New Year and Christmas Men" meet, thear assistants cut out of cardboard the letter...
分类:其他好文   时间:2014-07-22 23:03:53    阅读次数:521
【LeetCode】- Length of Last Word(最后一个单词的长度)
[ 问题: ] Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word in the string. If the last word does not exist, return 0. [...
分类:其他好文   时间:2014-07-22 23:01:35    阅读次数:331
【LeetCode】- Search Insert Position(查找插入的位置)
[ 问题: ] Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in order. You may assume no duplicates in th...
分类:其他好文   时间:2014-07-22 23:01:15    阅读次数:270
switch语句语法格式
switch语句语法格式Switch是多条件判断语句。注意:使用switch中的表达式里面只能放字符或数字使用时不要忘了在case语句之后加上一个break,表示退出整个语句,如果不加入此语句,它会从第一个满足条件的地方开始后续的都要被执行。我们看下如果在case语句后面没有加上break话会出现什...
分类:其他好文   时间:2014-05-01 21:17:04    阅读次数:446
关于mysql中or条件和索引
参考boke:http://blog.csdn.net/hguisu/article/details/71061591 .where 语句里面如果带有or条件, myisam表能用到索引, innodb不行。(在mysql5.6下测试如此)CREATE TABLE IF NOT EXISTS `a`...
分类:数据库   时间:2014-05-01 20:58:57    阅读次数:601
Requirement-Driven Linux Shell Programming
Requirement-Driven Linux Shell ProgrammingRequirement-Driven Linux Shell ProgrammingTable of Contents1. Where can I find the basic Material about Linu...
分类:系统相关   时间:2014-05-01 20:40:05    阅读次数:678
umlの用例图
我的总结是在看完uml学习之后又参考了同学借的《uml和ooad快速入门》的思路,利用齿轮带动的原理进行。废话不多说了,首先分析一下类图和用例图的联系与区别。 类图 用例图 类class 用例use case 、参与者actor 关联association 包含include、扩展extend 静态结构 动态功能 系统内观 系统外观...
分类:其他好文   时间:2014-05-01 18:37:36    阅读次数:407
mysql 左连接 自连接 例子
连接就是将两个表按照某个公共字段来拼成一个大表。 左连接就是在做连接是以左边这个表为标准,来遍历右边的表。 例子: 用户访问记录: 问题:查出看了湖南卫视但没有看北京卫视的用户信息 逻辑:先通过左连接将看了湖南卫视和北京卫视的查出来,然后再将看了湖南卫视但不在刚才查出的结果中的用户查出来。 SELECT * FROM test_visit WHERE channel='...
分类:数据库   时间:2014-04-30 22:31:39    阅读次数:401
thinkphp的分页格式自定义
public function index(){         header('Content-Type:text/html;charset=utf-8 '); $M = M("Constant");           $count = $M->where($where)->count();           import("ORG.Util.Page"); // 导入分页类   ...
分类:Web程序   时间:2014-04-30 22:27:39    阅读次数:343
追踪sql会话 dbms_monitor
经常会遇到一个会话中存在sql性能问题,但无法定位哪一个sql导致DB性能问题较高,这是我们需要对这个session进行监控可以通过dbms_monitor包来实现。 首先确定要监控的会话sid及serial#,可以通过v$session视图获得 select sid, serial#, username from v$session  where ... 确定session...
分类:数据库   时间:2014-04-30 22:23:38    阅读次数:413
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!