Results of 1 - 1 of about 1 for createStruct (0.001 sec.)
- Run Queries 9414
- Overview Java applications send queries and read result sets through the familiar Statement , PreparedStatement , and ResultSet interfaces. This page covers sending queries and reading DuckDB's nested and composite types. For opening the Co
...— returns an org.duckdb.user.DuckDBUserArray (a java.sql.Array ) for a LIST or ARRAY , where typeName is the element type. createStruct(typeName, attributes) — the standard JDBC method — returns an org.duckdb.user.DuckDBUserStruct (a java.sql.Struct ), where...= conn.prepareStatement("SELECT ?::INTEGER[]")) { stmt.setObject(1, list); stmt.execute(); } // STRUCT Struct point = conn.createStruct("STRUCT(x DOUBLE, y DOUBLE)", new Object[] {1.0, 2.0}); // MAP Map<String, Integer> counts = conn.createMap("MAP(VARCHAR,...struct of two DOUBLE fields, and a LINESTRING is a list of such points. After loading the extension, build the value with createStruct() (or createArrayOf() ) and cast the parameter to GEOMETRY ; a GEOMETRY result comes back as Well-Known Binary through get... - https://man.mtool.work/duckdb/2.0/clients/java/querying.html
PREV
1
NEXT
DuckDB 2.0 Documentation / man.mtool.work