Tim Cooke wrote:What errors? Can you be more specific?
Ok.
First of all I did a code in Java that creates a database and then creates tables and inserts the information into the database.
This code use the method Statement.
The code has 3 method: public void CreateDataBase(), public void CreateTables(), public void InsertRecords():
That code works.
Second of all I wanted to do this code using methods PrepareStatement.
And the code is that I posted earlier.
I tryed to creates databases using PrepareStatement.
I tryed to creates tables using PrepareStatement.
I tryed to insert records using PrepareStatement.