ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Zhong Nanhai <higerinbeij...@gmail.com>
Subject Re: list all databases in mysql server
Date Sun, 23 May 2010 07:15:46 GMT
Many thanks!!! It works.

On 5/21/10, Martin Ellis <martin@ellis.name> wrote:
> 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
>
>

---------------------------------------------------------------------
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