ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From AlexElba <ramal...@yahoo.com>
Subject question about include
Date Mon, 20 Jul 2009 21:19:17 GMT

I have part of sql query which I am using in many places and I disided to
move it into <sql> and use it with include. 

Everything works fine but I have question about how can I change some table
names in sql/include?


<sql id="sele">
select * from apple

<select id="get">
<include refid="sele" />
where color=#color#

I want to pass into my sele table name from <select.. how can I do this?

View this message in context: http://www.nabble.com/question-about-include-tp24577751p24577751.html
Sent from the iBATIS - User - Java mailing list archive at Nabble.com.

To unsubscribe, e-mail: user-java-unsubscribe@ibatis.apache.org
For additional commands, e-mail: user-java-help@ibatis.apache.org

View raw message