1. SQL Statements
1.1. INSERT
1.1.1. Creates a new row
1.2. DELETE
1.2.1. Removes existing data
1.3. UPDATE
1.3.1. Change existing data
1.4. SELECT
1.4.1. Reads data
2. Database specific
2.1. JAR file implements interfaces
3. Dealing Exceptions
3.1. SQLException
3.1.1. getMesage
3.1.1.1. returns a human-readable message as to what went wrong
3.1.2. getErrorCode
3.1.2.1. Retrieves the vendor-specific exception code for this SQLException object
3.1.3. getSQLState
3.1.3.1. returns a code as to what went wrong
4. Four keys Interfaces JAVA API
4.1. Driver
4.1.1. DriverManager
4.1.1.1. Factory method getConnection()
4.1.1.1.1. JAR file contains java.sql.Driver file
4.1.1.1.2. Older JAR files
4.2. Connection
4.2.1. Conncect database
4.2.1.1. JDBC URL
4.2.1.1.1. Three parts
4.3. ResultSet
4.3.1. Create a ResultSet with three diferent types
4.3.1.1. TYPE_FORWARD_ONLY
4.3.1.1.1. Go through the data in order
4.3.1.1.2. Default
4.3.1.2. TYPE_SCROLL_INSENSITIVE
4.3.1.2.1. Go through the data in any order
4.3.1.3. TYPE_SCROLL_SENSITIVE
4.3.1.3.1. Go through the data in any order
4.3.2. Creates a ResultSet with concurrency modes
4.3.2.1. CONCUR_READ_ONLY
4.3.2.1.1. Reads data but not write it
4.3.2.2. CONCUR_UPDATABLE
4.3.2.2.1. Read and write data
4.3.3. Method next()
4.3.3.1. Returns true if existing data
4.3.3.1.1. moves a cursor position data
4.3.4. get methods
4.3.4.1. Wrappers
4.3.4.2. index int or name column
4.3.4.2.1. index begins 1
4.4. Statement
4.4.1. executeUpdate()
4.4.1.1. returns rows affected
4.4.2. executeQuery() returns ResultSet
4.4.2.1. Only SELECT SQL Statement
4.4.3. execute() returns boolean
4.4.3.1. true if the first result is a ResultSet object
4.4.3.1.1. getResultSet()
4.4.3.2. false if it is an update count or there are no results
4.4.3.2.1. getUpdateCount()
5. Close resources
5.1. avoid leaking resources
5.1.1. Closing a Connection automatically closes the Statement and ResultSet objects
5.1.2. Closing Statement automatically closes the ResultSet
5.2. try-with-resources
5.2.1. Does not require explicit closing