ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Torsten Michelmann" <torsten.michelm...@gmx.de>
Subject Re: Table names as parameter
Date Mon, 10 Jul 2006 12:53:55 GMT
Hi,

have a look at http://opensource.atlassian.com/confluence/oss/display/IBATIS/How+do+I+pass+in+a+dynamic+table+name+-+or+other+uncommon+parameters

Basically use $tableName$. This will change the SQL statement before the prepared Statement
is created.


-------- Original-Nachricht --------
Datum: Mon, 10 Jul 2006 14:49:12 +0200
Von: "Serafín Orillán Chaparro" <serafin.orillan@isotrol.com>
An: user-java@ibatis.apache.org
Betreff: Table names as parameter

> 
> Is there any way to pass the very table names as parameters, to be able 
> to do something like this:
> 
> <select id="foo" parameterClass="java.util.Map">
>     SELECT ID, NAME FROM #tableName#
> </select>
> 
> ?
> 
> Thanx!
> 
> -- 
> Serafín Orillán Chaparro
> Isotrol S.A.
> Avda. de la Innovación 1, 3ª planta
> +34 955 036 800
> e-mail: serafin.orillan@isotrol.com
> 

-- 
Greetings
Torsten 

Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer

Mime
View raw message