My SQL and Java Developer’s Guide phần 5 doc
... 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...
Ngày tải lên: 13/08/2014, 12:21
... 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...
Ngày tải lên: 13/08/2014, 12:21
... 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...
Ngày tải lên: 13/08/2014, 12:21
My SQL and Java Developer’s Guide phần 3 pptx
... 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...
Ngày tải lên: 13/08/2014, 12:21
My SQL and Java Developer’s Guide phần 4 pptx
... ResultSets 143 import java. awt.*; import java. awt.event.*; import javax.swing.*; import java .sql. *; import java. util.*; import java. awt.geom.AffineTransform; import java. awt.image.BufferedImage; import java. io.*; public ... parameterIndex, java .sql. Date ADate, java. util. Calendar Cal)—Sets a parameter to a java .sql. Date value. void setNull(int parameterIndex, int sql...
Ngày tải lên: 13/08/2014, 12:21
My SQL and Java Developer’s Guide phần 7 ppsx
... we build a MySQL database interface. What’s Next 2 45 The Task Manager 257 package mysqljava; import java. awt.*; import java. awt.event.*; import java .sql. *; import java. util.*; import javax.swing.*; import ... for MySQL 252 package mysqljava; import java .sql. *; public class SqlExceptionReader { public static String readException( SQLException sqlX ) { StringBuffer msg = ne...
Ngày tải lên: 13/08/2014, 12:21
My SQL and Java Developer’s Guide phần 8 pdf
... 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...
Ngày tải lên: 13/08/2014, 12:21
My SQL and Java Developer’s Guide phần 10 pot
... 384–3 85 MySQL, 56 string, 379–384 G general interface example connections, 253 – 254 database information task, 268–270 insert row task, 280–2 85 show columns task, 2 75 280 SQL exceptions, 252 SQL ... checksum for string s. Example: mysql> SELECT MD5('This is a string'); + + | MD5('This is a string') | + + | 41fb5b5ae4d57c5ee528adb00e5e8e74 | + + 1 row in set...
Ngày tải lên: 13/08/2014, 12:21