codeigniter数据库错误信息获取

db_debug – TRUE/FALSE (boolean) – Whether database errors should be displayed. 需要设置db_debug = false Yes, this is the mysql_error() wrapper. $this->db->_error_message(); And the mysql_errno wrapper is: $this->db->_error_number(); via: http://stackoverflow.com/questions/3234564/under-codeigniter-is-it-possible-to-see-mysql-error

Hive – JOIN实现过程

准备数据 语句 SELECT a.uid,a.name,b.age FROM logs a JOIN users b ON (a.uid=b.uid); 我们希望的结果是把users表join进来获取age……

Hive – Group By 的实现

准备数据 SELECT uid, sum(count) FROM logs group by uid; hive> select * from logs; a 苹果 5 a 橙子 3 a 苹果 2 b 烧鸡 1 hive> SELECT uid, sum(count) FROM logs group by uid;……

Hive – Distinct 的实现

准备数据 语句 select count, count(distinct uid) from logs group by count; hive> select * from logs; OK a 苹果 3 a 橙子 3 a 烧鸡 1 b 烧鸡 3 hive> select count, count(distinct uid)……

使用jsduck生成extjs3.x的代码

直接按说明的命令会出错 Error: Error while parsing /root/PROJECTS/foundation-ui/src/main/webapp/scripts/ext/src/ext-core/src/adapter/ext-base-begin.js: Line 18: Unexpected end of input 解决方法 jsduck ext-3.4.0/src/{core,data,dd,direct,ext-core/src/core,ext-core/src/data,ext-core/src/util,state,widgets} --output api 来源:http://ww……