錯誤碼: 1247 Reference 'startTime' not supported (forward reference in item list),1247starttime

來源:互聯網
上載者:User

錯誤碼: 1247 Reference 'startTime' not supported (forward reference in item list),1247starttime

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...錯誤碼: 1247Reference '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)將參數換成具體的數值

著作權聲明:本文為博主原創文章,未經博主允許不得轉載。

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.