<?xml version="1.0" encoding="utf-8" ?>
<sqlMap namespace="Account"
xmlns="http://ibatis.apache.org/mapping"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >
<alias>
<typeAlias alias="ContentObject" type="DaoProvider.ContentObject,DaoProvider"/>
</alias>
<statements>
<select id="GetWareSortByWids" parameterMap="Widsjoin" resultClass="Product">
select Wid,Wname from ware(nolock) where wid in (?)
</select></statements>
<parameterMaps>
<parameterMap id="Widsjoin" class="string">
<parameter property="value" dbtype="varchar" type="string" direction="Input" size="8000"/>
</parameterMap>
</parameterMaps>
</sqlMap>
经过测试改为此种之后减少数据库预编译的次数,有效的提高了sql的执行效率,执行效率至少提高20%。