Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
conn = DriverManager.getConnection("jdbc:derby:mydatabase;create=true",props);
每次我执行它时,这条线会让我的数据库被覆盖吗?如果它会我如何创建一次数据库并从此使用它?
你所做的将与德比一起工作。如果它不存在,它将创建数据库,如果它已经存在,它将不执行任何操作。