... results from the SQL query
task.
Building a General Interface for MySQL
272
package mysqljava;
import java .sql. *;
import java. util.*;
import java. awt.*;
import java. awt.event.*;
import javax.swing.*;
public ... we build a MySQL database interface.
What’s Next
245
The Task Manager
2 57
package mysqljava;
import java. awt.*;
import java. awt.event.*;
import java .sql. *;
imp...
... and Time Column Types 171
DATE 172
TIME 172
DATETIME 172
YEAR 173
TIMESTAMP 173
Using Date and Time Types 173
Numeric Column Types 175
TINYINT 176
SMALLINT 176
MEDIUMINT 176
INT 177
BIGINT 177
FLOAT ... 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 specializes in Ja...
... Production MySQL servers, you have two possibilities: MySQL
and MySQL-Max. The MySQL download is a basic MySQL server without trans-
action support table types compiled into the binary. The MySQL-Max ... the Linux version of MySQL, you have two different files on your system.
One has a name like MySQL-3.23/MySQL-3.23.52-1.i386.rpm, and the other has a
name like MySQL-3.23/MySQL-client-3.2...
... <subname>. Here are 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:4533/prod
In ... 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....
... Date and Time Column 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 ... Timestamp, and
Date. A null is represented as
Manipulating Date/Time Types
155
values of –1 .79 76931348623157E+308 to –2.225 073 8585 072 014E-308,...
... access the session and entity beans.
import java. io.*;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.naming.*;
import javax.ejb.*;
import test.*;
public class caHandler extends ... in Figure 9.5, the values pulled from the method will be in the
form of java .sql. type—such as java .sql. Integer or java .sql. String. If you aren’t
sure how to pull data from a tabl...
... 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...
... 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...