A problem I encountered recently is that the length limit is exceeded when in

The approximate scenario is that when the Excel table is imported, there are more than 1000 students in it. In this case, if you use in to query these 1000 students, the length limit will be exceeded.

The current solution is to query the data to be queried as a table and then query the tables

The approximate sentence is as follows

  <select id="getSchool"   resultMap="ExcelModelSchool"  parameterClass="java.util.List">

                                            SELECT
                                                T .SCHOOL_NAME school_Name,
                                                T ."ID"  school_Id ,
                                                T.ISMANAGER ISMANAGER
                                            FROM
                                            (select * from (
                                            <iterate open="(" close=")" conjunction=",">    
                                                <![CDATA[  
                                                    SELECT
                                                            #list[]# sname
                                                            FROM dual
                                                   ]]>  
                                            </iterate>
                                            )) s,
                                                T_SCHOOL T
                                            WHERE
                                                T .SCHOOL_NAME =s.sname
                                        
                                        
    </select>

 

{{o.name}}
{{m.name}}

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324146814&siteId=291194637