数据库客户端SQLeonardo的使用
这篇文章要介绍SQLeonardo。我使用了一下,挺不错,一个jar包,加载不同的驱动之后,可以连接很多类型的数据库,我只连接了HSQL和Oracle两个数据库。下面简单介绍一下。
首先当然是先要到官方下载了,地址是:http://sourceforge.net/project/showfiles.php?group_id=182744
我将这个小东西解压到了F盘的一个目录中,如图示:
![](http://hiphotos.baidu.com/hivemind/pic/item/d7e452f0acba07dd7831aa33.jpg)
首先当然是先要到官方下载了,地址是:http://sourceforge.net/project/showfiles.php?group_id=182744
我将这个小东西解压到了F盘的一个目录中,如图示:
![](http://hiphotos.baidu.com/hivemind/pic/item/d7e452f0acba07dd7831aa33.jpg)
执行命令:java -jar sqleonardo.jar ,如图示:
![](http://hiphotos.baidu.com/hivemind/pic/item/9b69ff626eba4dc3e6113a3e.jpg)
这时候就显示出了SQLeonardo客户端的真实面目,如图示:
![](http://hiphotos.baidu.com/hivemind/pic/item/9b69ff626eba4dc3e6113a3e.jpg)
这时候就显示出了SQLeonardo客户端的真实面目,如图示:
![](http://hiphotos.baidu.com/hivemind/pic/item/7ddc1312de8d184ff919b805.jpg)
上面的dbHsql和driverDerby是我建立的一个数据库驱动连接,dbHsql是我建立的数据库连接。下面就以建立hsql为例介绍一下。
1 点击页面的图标
,建立一个新的驱动,这时候会出现一个选择驱动jar包的界面,如图:
![](http://hiphotos.baidu.com/hivemind/pic/item/8d45176dcc5b1ae54216940f.jpg)
1 点击页面的图标
![](http://hiphotos.baidu.com/hivemind/pic/item/ef6cb53dde41791ebba16703.jpg)
![](http://hiphotos.baidu.com/hivemind/pic/item/8d45176dcc5b1ae54216940f.jpg)
一定要选择“add library(browse filesystem)”这个框,因为你所需要的jar包在目前所列的目录中一般是没有的。点击“next”按钮,如图示,选择jar包
![](http://hiphotos.baidu.com/hivemind/pic/item/7ddc1312debc184ff919b816.jpg)
点击“next”按钮,选择对应的驱动,如图示
![](http://hiphotos.baidu.com/hivemind/pic/item/ed709cfd6d43790809244d8b.jpg)
![](http://hiphotos.baidu.com/hivemind/pic/item/7ddc1312debc184ff919b816.jpg)
点击“next”按钮,选择对应的驱动,如图示
![](http://hiphotos.baidu.com/hivemind/pic/item/ed709cfd6d43790809244d8b.jpg)
点击“ok”按钮,完成驱动的配置,选择图标
,配置数据库连接,如图示:
![](http://hiphotos.baidu.com/hivemind/pic/item/75ef873488af1ba9d0a2d39c.jpg)
![](http://hiphotos.baidu.com/hivemind/pic/item/ef6cb53dddf5781ebaa16797.jpg)
![](http://hiphotos.baidu.com/hivemind/pic/item/75ef873488af1ba9d0a2d39c.jpg)
点击“OK”按钮,就完成了数据库连接的配置。点击“table”,就可以看到我创建的表tb了。如图:
![](http://hiphotos.baidu.com/hivemind/pic/item/b989654abd91ef3d08f7ef64.jpg)
![](http://hiphotos.baidu.com/hivemind/pic/item/b989654abd91ef3d08f7ef64.jpg)
在tb上点击右键,选择show centent ,选择“是”按钮,就能查看表tb的数据。如图示:
![](http://hiphotos.baidu.com/hivemind/pic/item/b82aaa0a169b1520b0351d69.jpg)
![](http://hiphotos.baidu.com/hivemind/pic/item/edaa0b3f594dd2f255e7236a.jpg)
剩余的像什么“命令行”、“查询”、“布局”等按钮菜单就不一一介绍了,大家一看就明白了。呵呵
![](http://hiphotos.baidu.com/hivemind/pic/item/b82aaa0a169b1520b0351d69.jpg)
![](http://hiphotos.baidu.com/hivemind/pic/item/edaa0b3f594dd2f255e7236a.jpg)
剩余的像什么“命令行”、“查询”、“布局”等按钮菜单就不一一介绍了,大家一看就明白了。呵呵