POLITECHNIKA RZESZOWSKA - Wydział Elektrotechniki > Informatyki
try {
// connect to database Connection connection =
DriverManager.getConnection(arl, user, passwo // create Statement to ąuery database Statement statement = connection■createStatement();
String ąuery = "DROP TABLE myDatabaseTable";
int result = statement.executeUpdate(ąuery); ąuery = "CREATE TABLE myDatabaseTable (id INT NOT NULL" + •’ ADTOINCREMENT PRIMARY KEY, firstname"
+ " VARCHAR(20), last_name VARCHAR(20),
mail VARCHAR(20));"
U
■ '&*£> 2012 Jan PROKOP