06 2017 档案

摘要:错误信息:$this引用没有上下文 原因:在PHP5中,static声明的静态方法里不可以使用$this 需要使用self来引用当前类中的方法或是变量。 示例代码如下: 阅读全文
posted @ 2017-06-14 13:18 贵隆 阅读(1586) 评论(0) 推荐(0)
摘要:正确语句: select *, count(distinct name) from table group by name 错误语句: select id, distinct name from table很遗憾,除了错误信息你什么也得不到,distinct必须放在开头。难到不能把distinct放 阅读全文
posted @ 2017-06-13 18:02 贵隆 阅读(416) 评论(0) 推荐(0)