MySQL5.5 預存程序支援limit變數

來源:互聯網
上載者:User

今天我在審核開發的SQL時,發現有個預存程序他們是用動態SQLCONCAT()函數)拼湊的,這樣效能沒有靜態SQL好,於是讓他們更改,結果他們說建立預存程序報錯,我很納悶,不應該啊,我這邊沒問題,結果諮詢了那邊,測試環境是用的MySQL5.1,而我這邊是MySQL5.5,版本的問題。
 

下面我做了一個測試,這個是MySQL5.1的,

650) this.width=650;" border="0" src="http://www.bkjia.com/uploads/allimg/131228/2249562461-0.jpg" alt="" />


建立果然報錯,再來看看MySQL5.5的表現,
 

650) this.width=650;" border="0" src="http://www.bkjia.com/uploads/allimg/131228/22495C030-1.jpg" alt="" />


完全OK,一切順利。

 

本文出自 “賀春暘的技術專欄” 部落格,請務必保留此出處http://hcymysql.blog.51cto.com/5223301/1193962

相關文章

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.