IBG项目技术概览(HTML/CSS/JavaScript/AngularJS/PHP/MySQL):(1)后台:PHP Yii2.0 Framework(2)前端:Ionic FrameworkIBG项目工作日志2015年5月11日1.修复bug:订单验证;(1)验证Order是否已存在; 同一....
分类:
其他好文 时间:
2015-06-16 12:50:46
阅读次数:
132
例子:$sql = 'SELECT SUM(o.price) as `sum` FROM `order` o WHERE o.customer_id ='.$profile->id;$ret = Yii::$app->db->createCommand($sql)->qu...
分类:
数据库 时间:
2015-06-16 12:26:27
阅读次数:
445
Shuffling is a procedure used to randomize a deck of playing cards. Because standard shuffling techniques are seen as weak, and in order to avoid “inside jobs” where employees collaborate with gamblers...
分类:
系统相关 时间:
2015-06-16 09:26:09
阅读次数:
160
如果MySQL编码格式为GBK字符集,可直接在查询语句后面添加
order by name asc; --进行升序排序
如果是utf8字符集,需要在排序的时候对字段进行转码,
order by convert(name using gbk) asc;
附:查看MySQL编码方式
SHOW VARIABLES LIKE 'character%';...
分类:
数据库 时间:
2015-06-16 00:01:49
阅读次数:
379
MySQL索引通常是被用于提高WHERE条件的数据行匹配或者执行联结操作时匹配其它表的数据行的搜索速度。MySQL也能利用索引来快速地执行ORDER BY和GROUP BY语句的排序和分组操作。通过索引优化来实现MySQL的ORDER BY语句优化:1、ORDER BY的索引优化。如果一个SQL语句...
分类:
数据库 时间:
2015-06-15 23:50:58
阅读次数:
180
Given a sorted (increasing order) array, write an algorithm to create a binary tree with minimal height.1.Divide the array equally into left part and ...
分类:
其他好文 时间:
2015-06-15 23:35:50
阅读次数:
123
DescriptionIn order to make their sons brave, Jiajia and Wind take them to a big cave. The cave has n rooms, and one-way corridors connecting some roo...
分类:
其他好文 时间:
2015-06-15 21:44:47
阅读次数:
200
1,demo下载地址:https://b.alipay.com/order/productDetail.htm?productId=2013080604609654&tabId=4#ps-tabinfo-hash2,载入aplipay库,关联类库3,用申请到的seller,partner,priva...
分类:
移动开发 时间:
2015-06-15 18:31:32
阅读次数:
139
You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single ...
分类:
其他好文 时间:
2015-06-15 10:54:28
阅读次数:
77
Given a binary tree, return thelevel ordertraversal of its nodes' values. (ie, from left to right, level by level).For example:Given binary tree{3,9,2...
分类:
其他好文 时间:
2015-06-15 00:06:27
阅读次数:
102