ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tom Carchrae <carch...@gmail.com>
Subject table name as parameter
Date Mon, 08 Feb 2010 19:47:11 GMT

I am trying to load a table using a parameter to specify the table name:

  <select id="selectAllFromTable" parameterType="String"
  	select * from #{id} 

But it seems iBatis does not like this.  Any suggestions on what I am doing
wrong?  Is there a better way to load a table when I want to specify the
table name at runtime?

Thanks in advance,


View this message in context: http://old.nabble.com/table-name-as-parameter-tp27505213p27505213.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