Question: public Author insertAuthor ( Author author ) { Connection connection = ConnectionUtil.getConnection ( ) ; try { / / Write SQL logic here. You should

public Author insertAuthor(Author author){
Connection connection = ConnectionUtil.getConnection();
try {
//Write SQL logic here. You should only be inserting with the name column, so that the database may
//automatically generate a primary key.
String sql = "INSERT INTO Author" ;

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!