An error occurred while using mybatis to operate on the stored procedure.

Source: Internet
Author: User

An error occurred while using mybatis to operate on the stored procedure.
An error occurred during project development:

<Span style = "font-size: 24px;"> org. springframework. jdbc. badSqlGrammarException: ### Error querying database. cause: java. SQL. SQLException: ORA-06550: 8th rows, 4th columns: PLS-00103: sign ";" when you need the following :. (), * @ % & =-+ </> at in is mod remainder not rem => <an exponent (**)> <> or! = Or ~ ==<=<> And or like like2 like4 likec between | indicator multiset member submultiset symbol ")" is replaced with ";" and then continues. ### The error may exist in file [D: \ Program Files \ Workspaces \ MyEclipse for Spring 2014 \ salesmanb2b \ WebRoot \ WEB-INF \ classes \ sqlmap \ ProductMapper. xml] ### The error may involve com. salesmanb2b. mapper. productMapper. getProductsProc-Inline ### The error occurred while setting parameters ### SQL: {call GET_PRODUCTS (?, ?, ?, ?,? #### Cause: java. SQL. SQLException: ORA-06550: 8th rows, 4th columns: PLS-00103: sign ";" when you need the following :. (), * @ % & =-+ </> at in is mod remainder not rem => <an exponent (**)> <> or! = Or ~ ==<=<> And or like like2 like4 likec between | indicator multiset member submultiset symbol ")" is replaced with ";" and then continues .; Bad SQL grammar []; nested exception is java. SQL. SQLException: ORA-06550: 8th rows, 4th columns: PLS-00103: sign ";" when you need the following :. (), * @ % & =-+ </> at in is mod remainder not rem => <an exponent (**)> <> or! = Or ~ ==<=<> And or like like2 like4 likec between | indicator multiset member submultiset symbol ")" is replaced with ";" and then continues. </Span>


An error occurred while creating the ing file.

       <select id="getProductsProc" parameterType="java.util.Map" statementType="CALLABLE">            {call GET_PRODUCTS        (         #{proid,jdbcType=INTEGER, mode=IN},         #{product1,javaType=ResultSet,jdbcType=CURSOR,resultMap=product,mode=OUT},         #{product2,javaType=ResultSet,jdbcType=CURSOR,resultMap=product,mode=OUT},         #{product3,javaType=ResultSet,jdbcType=CURSOR,resultMap=product,mode=OUT},         #{product4,javaType=ResultSet,jdbcType=CURSOR,resultMap=product,mode=OUT}         )         }           </select>  

The right parenthesis behind the call is missing


This is a small detail


PS:

For Oracle stored procedures

We recommend that you use navicat to write the code after it runs successfully.








Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.