ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daryl Stultz <da...@6degrees.com>
Subject Re: table name as parameter
Date Mon, 08 Feb 2010 19:53:45 GMT
On Mon, Feb 8, 2010 at 2:47 PM, Tom Carchrae <carchrae@gmail.com> wrote:

>
> I am trying to load a table using a parameter to specify the table name:
>
>  <select id="selectAllFromTable" parameterType="String"
> resultType="hashmap">
>        select * from #{id}
>  </select>
>
>
select * from ${id}

Daryl Stultz
_____________________________________
6 Degrees Software and Consulting, Inc.
http://www.6degrees.com
mailto:daryl@6degrees.com

Mime
View raw message