Question: Explain in detail each step of the following SQLJ code import java.sql . * ; / * * This is what you have to do
Explain in detail each step of the following SQLJ code
import java.sql;
This is what you have to do in SQLJ
public class SimpleDemoSQLJ line
TO DO: make a main that calls this
public Address getEmployeeAddressint empno line
throws SQLException
Address addr; line
#sql SELECT officeaddr INTO :addr FROM employees
WHERE empnumber :empno ;
return addr;
line
public Address updateAddressAddress addr
throws SQLException
#sql addr VALUESUPDATEADDRESS:addr; line
return addr;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
