ibatis问题
delete from fund_receivedsms where mobilephone= '13912600308 ' and content like '%028% ';
在ibatis中的写法 怎么去写
急 !!
------解决方案--------------------delete from fund_receivedsms where mobilephone= #mobilephone# and content like #content#
参数为parameterClass= "map "
map.put( "mobilephone ", "13912600308 ");
map.put( "content ", "%028% ");
------解决方案--------------------配置文件:
<delete id= "delete_from_fund_receivedsms " parameterClass= "java.util.Map ">
<![CDATA[
delete from fund_receivedsms where mobilephone= #mobilephone# and content like #content#
]]>
</delete>
代码:
map.put( "mobilephone ", "13912600308 ");
map.put( "content ", "%028% ");