ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Ellis <mar...@ellis.name>
Subject Re: list all databases in mysql server
Date Fri, 21 May 2010 10:18:42 GMT
On 21 May 2010 08:17, Zhong Nanhai <higerinbeijing@gmail.com> wrote:
> Is it possible to show all databases in a mysql server with iBatis?

<select id="showdatabases" resultType="map">
  SHOW DATABASES
</select>

System.out.println(session.selectList("your-namespace.showdatabases"));

Martin

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


Mime
View raw message