dragu stelian

Greenhorn
+ Follow
since Jan 01, 2016
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by dragu stelian

This is the final code and it works





Now I stil have a question: How to insert many query ?

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.
Hi!
I have some errors in the follwing code.
Can you help me, please?