10 lines
472 B
PL/PgSQL
10 lines
472 B
PL/PgSQL
CREATE ALIAS UPDATE_EMPLOYEE_DESIGNATION AS $$
|
|
import java.sql.CallableStatement;
|
|
import java.sql.Connection;
|
|
import java.sql.SQLException;
|
|
@CODE
|
|
void updateEmployeeDesignation(final Connection conn, final String employeeNumber, final String title) throws SQLException {
|
|
CallableStatement updateStatement = conn.prepareCall("update deptemployee set title = '" + title + "' where employeeNumber = '" + employeeNumber + "'");
|
|
updateStatement.execute();
|
|
}
|
|
$$; |