79506125

Date: 2025-03-13 10:26:01
Score: 1
Natty:
Report link

You can access the values of a composite types alias by first writing it in parenthesis in the WHERE clause followed by one of its fields. For example:

SELECT (p).age, (p).name FROM test

When you then want to access it through a ResultSet, you can do it by referencing only the field:

rs.getInt("age");

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Lorenz Harfst