火急!!!这样的sql语句,在ibatis配置文件如何写?
SQL语句如下:
with t as (select * from emp where depno=10)
select * from t where empno=xxx
如果将它整个放到<select> </select>里面是不对的
求助,如何写呢?
谢谢!!!
------解决方案--------------------
写到<sql id="XXXXX">
with t as (select * from emp where depno=10)
select * from t where empno=xxx
</sql>
然后再select 中引用不就行了吗
------解决方案--------------------
<include refid=""/>