现在是有张评论表,有uid,content,star,addtime字段,现在我想查询uid=5的5条记录,语句如下:
M('comment')->where("uid=5")->field("content,addtime,star")->limit(5)->select();看上去没毛病吧,但是访问的时候,服务器就像是进了死循环,一直转啊转,然后我把addtime字段去掉了,就好了,加上就不行。甚至写原生sql:$sql = "select content,star,addtime from comment where uid=5";
M()->query($sql);也是不行,真是奇葩了,addtime又不是关键字,有什么影响么?谁遇到过帮忙说下怎么回事,谢了! 最佳答案