2011-06-10 126 views
0

連接到伯克利DB我已經下載&從oracle.com 然後安裝的Berkeley DB 5.1.25.msi Windows安裝我一直在使用下面的代碼中的Berkeley DB創建表後問題在從爪哇

c:\Program>"C:\Program Files\Oracle\Berkeley DB 11gR2 5.1.25\bin\dbsql" Emp.db 
Berkeley DB 11g Release 2, library version 
Enter ".help" for instructions 
Enter SQL statements terminated with a ";" 
dbsql> create table student(sno int,sname varchar(10)); 
dbsql> insert into student values(1.'abc'); 
dbsql>select * from student; 
1|dhananjay 

如何可以通過java執行數據庫操作

回答

0

沒有爲Berkeley數據庫沒有JDBC驅動程序。如果您需要Java的簡單數據庫,請嘗試H2