日期:2014-05-16 浏览次数:21161 次
C:\Documents and Settings\ldbjakyo>ij ij 版本 10.6
ij> connect 'jdbc:derby:ldbDerby:creat=true'; URL 属性 [creat=true] 属性是 Derby 未知的。 错误 08001:No suitable driver found for jdbc:derby:ldbDerby:creat=true
ij> connect 'jdbc:derby:ldbDerby;create=true;user=ldb;password=ldb;'; ij>
G:\derby_10.6.1.0>mkdir derbywork G:\derby_10.6.1.0>dir 驱动器 G 中的卷是 本地磁盘 卷的序列号是 7809-7182 G:\derby_10.6.1.0 的目录 2010-09-19 23:00 <DIR> . 2010-09-19 23:00 <DIR> .. 2010-09-19 22:21 <DIR> bin 2010-09-19 22:21 <DIR> demo 2010-09-19 23:00 <DIR> derbywork 2010-09-19 22:21 <DIR> docs 2010-04-26 07:07 5,513 index.html 2010-09-19 22:21 <DIR> javadoc 2010-04-26 13:23 37,645 KEYS 2010-09-19 22:21 <DIR> lib 2010-04-26 13:23 11,560 LICENSE 2010-04-26 13:23 7,118 NOTICE 2010-04-26 13:23 75,017 RELEASE-NOTES.html 2010-09-19 22:21 <DIR> test 5 个文件 136,853 字节 9 个目录 44,323,389,440 可用字节 G:\derby_10.6.1.0>cd derbywork G:\derby_10.6.1.0\derbywork>ij ij 版本 10.6 ij> connect 'jdbc:derby:ldbDerby;create=true;user=ldb;password=ldb;'; ij>
ij> exit ;
connect 'jdbc:derby:ldbDerby;'; 这里没必要再create=true,因为已经建立过ldbDerby数据库了,再创建会报错的(WARNING 01J01) show connections ; 看下到当前的所有连接状态 ij> show connections; CONNECTION0* - jdbc:derby:ldbDerby * = 当前连接 ij> disconnect; ij> show connections; 无可用的连接。 ij>
ij> connect 'jdbc:derby:ldbDerby'; ij> show connections; CONNECTION0* - jdbc:derby:ldbDerby * = 当前连接 ij> connect 'jdbc:derby:ldbDerby'; ij(CONNECTION1)> connect 'jdbc:derby:ldbDerby'; ij(CONNECTION2)> connect 'jdbc:derby:ldbDerby'; ij(CONNECTION3)> show connections; CONNECTION0 - jdbc:derby:ldbDerby CONNECTION1 - jdbc:derby:ldbDerby CONNECTION2 - jdbc:derby:ldbDerby CONNECTION3* - jdbc:derby:ldbDerby * = 当前连接 ij(CONNECTION3)> disconnect; ij> show connections; CONNECTION0 - jdbc:derby:ldbDerby CONNECTION1 - jdbc:derby:ldbDerby CONNECTION2 - jdbc:derby:ldbDerby 无当前连接 ij> disconnect; IJ 错误:无法建立 connection ij> disconnect; IJ 错误:无法建立 connection ij> show connections; CONNECTION0 - jdbc:derby:ldbDerby CONNECTION1 - jdbc:derby:ldbDerby CONNECTION2 - jdbc:derby:ldbDerby 无当前连接 ij> set connection CONNECTION1; ij(CONNECTION1)> show connections; CONNECTION0 - jdbc:derby:ldbDerby CONNECTION1* - jdbc:derby:ldbDerby CONNECTION2 - jdbc:derby:ldbDerby * = 当前连接 ij(CONNECTION1)>
G:\derby_10.6.1.0\derbywork\sqlTest>cd derby10 G:\derby_10.6.1.0\derbywork\sqlTest\derby10>java org.apache.derby.tools.ij < der by.bui