--

private static void sqlStatement() {

String sql = """

SELECT id, firstName, lastName\s\

FROM Employee

WHERE departmentId = "IT" \

ORDER BY lastName, firstName""";

System.out.println(text);

}

I think in the print statement, the variable should be sql instead of text.

--

--

Responses (1)