... Types
MYSQL TYPE JDBC TYPE JAVA TYPE
DATE DATE java .sql. Date
TIME TIME java .sql. Time
DATETIME TIMESTAMP java .sql. Timestamp
YEAR DATE java .sql. Date
TIMESTAMP TIMESTAMP java .sql. Timestamp
DATE
The MySQL ... Timestamp, and
Date. A null is represented as
Manipulating Date/Time Types
155
values of –1.7976931348623 157 E+308 to –2.2 250 73 858 5072014E-308, 0, and
2.2 25...
... Configuration
229
<resource-ref>
<res-ref-name>jdbc/AccountsDB</res-ref-name>
<res-type>javax .sql. DataSource</res-type>
<init-param driver-name="com.mysql.jdbc.Driver"/>
<init-param url="jdbc:mysql://192.168.1. 25/ accounts"/>
<init-param ... getColumnClassName(int) method.
As you can see in Figure 9 .5, the values pulled fro...
... associated with a database, executing SQL statements, and
processing data returned from a database. The API is split between two java
packages, java .sql and javax .sql. The former provides the core ... )
The JDBC API and Connector/J
338
The java .sql Package
The java .sql package represents the core of the JDBC API. It provides 11 classes
and 18 interfaces focused on co...
... 344
PreparedStatement 3 45
Ref 346
ResultSet 347
ResultSetMetaData 350
Savepoint 351
SQLData 351
SQLException 352
SQLInput 352
SQLOutput 353
SQLPermission 353
SQLWarning 354
Statement 354
Struct 355
Time 356
Timestamp ... Connector/J and its predecessor MM.MySQL,
the Java JDBC driver for MySQL. Last year, he joined MySQL AB to further
develop Java support in MySQL. Mark spec...
... 200210141 658 45
1034034 jime \N 200210141 658 45
1034067 jthompson james2 200210141 658 45
1034089 sstanford stanford 200210141 658 45
1034123 blewis lewis 200210141 658 45
1034 154 ysheets sheets 200210141 658 45
103 454 6 ... Production MySQL servers, you have two possibilities: MySQL
and MySQL-Max. The MySQL download is a basic MySQL server without trans-
action support table type...
... a
few examples:
jdbc:mysql://localhost
jdbc:mysql://localhost/accounts
jdbc:mysql://192. 156 .44.3/db_dev
jdbc:mysql://database.company.com/prod
jdbc:mysql://database.company.com: 453 3/prod
In each ... have expanded the code to put SQL errors into a JTextArea.
Using JDBC with Java Applications and Applets
92
import java. awt.*;
import java. awt.event.*;
import javax.swing.*;
import...
... directory, and restarting the server.
If you saved your data using the mysqldump command, you can “replay” the
SQL commands in the backup files into the current mysql server with the
command
mysql ... software:
■■
Mandrake 8.2 Linux
■■
Java SDK 1.4.0 from Sun
■■
MySQL 4.0.4 beta
The machines were connected to each other over a 100MB LAN.
MySQL Development and Test Environments
320...