
mysql、算法
明月何时照我还
这个作者很懒,什么都没留下…
展开
-
B+/-Tree原理及mysql的索引分析
B+/-Tree原理及mysql的索引分析转载 2016-04-13 13:57:22 · 2594 阅读 · 0 评论 -
MYSQL中 case when then else end使用举例
就是写着玩,假设存在这么一张表 test,表中有两个字段currency_code(币种编码'HKD', 'USD')、amount(金额),现在有这么一个需求,要求分别统计各币种对应的金额,怎么办,可以使用这种sql句法"case when then else end"。 具体写法: select sum(case when currency_code='HKD' ...原创 2018-03-07 16:46:38 · 1383 阅读 · 0 评论