Java(12) ACCESS database operation

Java(12) ACCESS database operation

1. Database foundation

1.1. Basic concepts

1. Field

Every column

2. Record

Every row

3. Primary key

Field used to uniquely identify the record

Two. ACCESS use

2.1. Create the first table

1. Define the name

Choose a common format.mdb

2. Create a table

3. Create a field

4. Set the primary key

5. Save the table

6. Enter the table

7. Edit the table

2.2. Create another table

1. New

2. Edit

2.3. Build a relationship

1. find

2. Select all

3. Pull it over

4. Build a relationship

Three. Establish a database connection

3.1. Basic concepts

1.JDBC

(Java Database Connectivity) java database connection

2.ODBC

Open database connection

3.JdocOdbcDriver

Bridge (driver)

3.2. Create a DSN (data source name)?

1. find

3. Add

4. Fill in the information

5. Select the database

6. Make sure

Guess you like

Origin blog.csdn.net/weixin_44179485/article/details/113529012