Hi to All


when i am executing the  this delet query  in ibatis
<delete id="delete the record from usetable"   parameterClass="booksform">
delete  FROM IBATISUSERBOOK   where  STATUS='Y'  and  REQUEST_STATUS='Y'
</delete>

i am getting this error
Delete statements cannot be executed as a query.
 at
com.ibatis.sqlmap.engine.mapping.statement.DeleteStatement.executeQueryForObject(DeleteStatement.java:33)
 at
com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.queryForObject(SqlMapExecutorDelegate.java:566)
 at
com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.queryForObject(SqlMapExecutorDelegate.java:541)

in action class  code is
sqlMap.queryForObject("delete the record from usetable");

Reply via email to