JavaDB网址 : Java数据库德比 « 数据库 « Java 教程

En
Java 教程
1. 语言基础
2. 数据类型
3. 操作符
4. 流程控制
5. 类定义
6. 开发相关
7. 反射
8. 正则表达式
9. 集合
10. 线
11. 文件
12. 泛型
13. 本土化
14. Swing
15. Swing事件
16. 二维图形
17. SWT
18. SWT 二维图形
19. 网络
20. 数据库
21. Hibernate
22. JPA
23. JSP
24. JSTL
25. Servlet
26. Web服务SOA
27. EJB3
28. Spring
29. PDF
30. 电子邮件
31. 基于J2ME
32. J2EE应用
33. XML
34. 设计模式
35. 日志
36. 安全
37. Apache工具
38. 蚂蚁编译
39. JUnit单元测试
Java
Java 教程 » 数据库 » Java数据库德比 
20. 37. 5. JavaDB网址

To connect to an existing JavaDB database using the embedded driver:

jdbc:derby:<databaseName>;<URLAttributes>

The options in this syntax are:

  1. Databasename: Specifies the database name to which the embedded driver should connect.
  2. URLAttributes: Specifies special URL attributes, such as create, upgrade, and territory, to use while connecting with the database.

To connect to an existing JavaDB database using the network client driver:

jdbc:derby://<host>:<port>/<databaseName>;
  1. host: Specifies the computer name or Internet Protocol address where Java DB is running. If Java DB is running on the same computer as that of the client, you can use localhost or 127.0.0.1 as the value of the host option.
  2. Port: Specifies the port number used by JavaDB to accept incoming requests.
  3. databaseName: Represents the name of the database to connect with.
20. 37. Java数据库德比
20. 37. 1. Java 6轻量级数据库Derby。
20. 37. 2. JavaDB的目录结构
20. 37. 3. JavaDB环境
20. 37. 4. JavaDB驱动器
20. 37. 5. JavaDB网址
20. 37. 6. JavaDB工具
20. 37. 7. You can use the server tool to start JavaDB in a network client environment.
20. 37. 8. 连接JavaDB
20. 37. 9. To view run time information for JavaDB, you can use the following command:
20. 37. 10. 停止JavaDB,您可以使用下面的命令:
20. 37. 11. 利用连接工具
20. 37. 12. You can use the connect command of ij to establish a connection with a database
20. 37. 13. 查看和开关连接
20. 37. 14. 工作表
20. 37. 15. 查看Employee表结构
20. 37. 16. 使用sysinfo工具
20. 37. 17. Connect to Java DB (Derby) with org.apache.derby.jdbc.EmbeddedDriver
20. 37. 18. 连接到Derby数据库
20. 37. 19. 在SQL脚本创建Employee表
www.java2java.com | Contact Us
Copyright 2010 - 2030 Java Source and Support. All rights reserved.
All other trademarks are property of their respective owners.