会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
贵隆
博客园
首页
新随笔
联系
订阅
管理
06 2017 档案
板邓:PHP解决Using $this when not in object context in【转】
摘要:错误信息:$this引用没有上下文 原因:在PHP5中,static声明的静态方法里不可以使用$this 需要使用self来引用当前类中的方法或是变量。 示例代码如下:
阅读全文
posted @
2017-06-14 13:18
贵隆
阅读(1586)
评论(0)
推荐(0)
板邓:MYSQL distinct关键字查询重复值只显示一条记录
摘要:正确语句: 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)
公告