简体   繁体   English

使用Java DB和Derby有什么区别吗?

[英]Is there any difference between using Java DB and Derby?

I am new to Java-based databases. 我是基于Java的数据库的新手。 I want to start with Java DB as it comes as a part of JDK. 我想从Java DB开始,因为它是JDK的一部分。 I cannot find enough resources to understand: is Java DB and Apache Derby the same thing? 我找不到足够的资源来理解:Java DB与Apache Derby是一回事吗? If yes, which one is easier to use from Eclipse? 如果是,哪一个更容易从Eclipse使用? Is it solely command line based database system? 它是基于命令行的数据库系统吗?

I tried to follow the official Getting Started guide for Java DB which says 我试着按照Java DB的官方入门指南说

The Java DB product includes Derby without any modification whatsoever to the underlying source code. Java DB产品包括Derby,无需对底层源代码进行任何修改。

but I cannot figure out the best way to use it. 但我无法弄清楚使用它的最佳方法。

JavaDB is the the oracle supported version of Apache Derby (some kind of fork), technically the same exact functionality (same documentation). JavaDBApache Derby的oracle支持版本(某种类型的fork),技术上完全相同的功能(相同的文档)。

 which one is easier to use from Eclipse? 

So there is no difference from the Eclipse part. 所以与Eclipse部分没有区别。

Otherwise, think of H2 as the best alternative of Derby (JavaDB) , fairly faster and simple to use, FlyWay will be a good complement as database migration tool (and a good practice). 否则,将H2视为Derby (JavaDB)的最佳替代方案,相当快速简单易用, FlyWay将成为数据库迁移工具的良好补充(并且是一种很好的实践)。

As a tool to use with Derby, try Squirrel: http://squirrel-sql.sourceforge.net/ 作为与Derby一起使用的工具,请尝试Squirrel: http//squirrel-sql.sourceforge.net/

It's a great tool, and it works very well with Derby. 这是一个很棒的工具,它可以很好地与Derby配合使用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM