用的spring+ibatis,数据库是SQLServer。
有个疑问:在对数据库进行select、update、insert、del的操作时,数据库有没有返回一些信息?比如是对哪个表进行的什么操作。有没有什么方法能够取得这些信息?请高手指教,谢谢!!!
有个疑问:在对数据库进行select、update、insert、del的操作时,数据库有没有返回一些信息?比如是对哪个表进行的什么操作。有没有什么方法能够取得这些信息?请高手指教,谢谢!!!
解决方案 »
- 如何禁止JTree展开某个节点
- 字符串比较错误 (if(!myradiobutton4.equals("UserName")){
- 请问 java 有没有 弹出消息框 的函数 ???
- 一个维数相关的问题
- 如何用java的正则得到String变量中\符号出现的次数
- 请问Object和int,String之间怎么样互相转换?
- Eclipse的ve插件是不是不能安装在jdk1.5环境下?昨天用eclipse3.1.1+emf-sdo-runtime2.1+GEF-runtime3.1+VE-runtime1.1.0.1始终不成功
- 求《Thinking in Java》第三版中文版!
- 概念!怎样理解“接口”和“内部类”的含义??/
- 当ORACEL关闭再次重新启动的时候,Spring连接数据库报错socket write error,提示Already closed
- 算法问题,求代码
- 求助:JAVA怎么实现条形码?
sql语句都写在xml里了,比如:
<select id="getAppLeasePriceInfo" resultMap="appLeasePrice" parameterClass="appTotalSearchInfo">
<![CDATA[
select
count(case when f.leaseprice>=300.00 and f.leaseprice<600.00 then f.id end) as appLeasePrice1,
count(case when f.leaseprice>=600.00 and f.leaseprice<900.00 then f.id end) as appLeasePrice2,
count(case when f.leaseprice>=900.00 and f.leaseprice<1200.00 then f.id end) as appLeasePrice3,
count(case when f.leaseprice>=1200.00 then f.id end) as appLeasePrice4
]]>
from familytable f
<dynamic prepend="WHERE">
<isNotEmpty prepend="AND" property="appUserFlag">
f.sectionname in ('1001','1002','1003','1004','1005','1006','1007','1008')
</isNotEmpty>
<isNotEmpty prepend="AND" property="appSectionName">
f.sectionname = #appSectionName#
</isNotEmpty>
<isNotEmpty prepend="AND" property="appUserFlag">
f.userflag = #appUserFlag#
</isNotEmpty>
<isNotEmpty prepend="AND" property="appHandleDateBegin">
<![CDATA[f.finaldate >= #appHandleDateBegin# ]]>
</isNotEmpty>
<isNotEmpty prepend="AND" property="appHandleDateEnd">
<![CDATA[f.finaldate <= #appHandleDateEnd# ]]>
</isNotEmpty>
</dynamic>
</select>像这样的情况,我想在执行前拦截一下将要对哪些表的哪些列进行操作。有可能做到么?