首页 > 其他 > 详细

错误代码: 1247 Reference 'startTime' not supported (forward reference in item list)

时间:2015-07-21 20:40:13      阅读:314      评论:0      收藏:0      [点我收藏+]

1、错误描述

1 queries executed, 0 success, 1 errors, 0 warnings

查询:SELECT a.createUserId AS typeId, (SELECT COUNT(c.id) FROM t_aps c WHERE c.`status` IN (2, 5) AND c.createTime >= start...

错误代码: 1247
Reference ‘startTime‘ not supported (forward reference in item list)

执行耗时   : 0 sec
传送时间   : 0 sec
总耗时      : 0 sec

2、错误原因

     由于在存储过程中,传参数时:

     c.createTime >= startTime and c.createTime <= endTime

     为了检测查询语句是否正确,我直接将存储过程中的带有参数的查询语句放在客户端运行,导致报错


3、解决办法

(1)将带有参数的语句段注释掉

(2)将参数换成具体的数值

版权声明:本文为博主原创文章,未经博主允许不得转载。

错误代码: 1247 Reference 'startTime' not supported (forward reference in item list)

原文:http://blog.csdn.net/you23hai45/article/details/46990559

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!