I know how to run a simple "select * from table" in java postgres jdbc connector.
But how do we run two or more statements, where statement2 depends on statement1 using java/JDBC-Postgres?
Example #1:
SET search_path TO a,b,c;
Select * from table1;
Example #2:
Create temporary table tempabc ... definition and value;
Select * from tableDEF inner join tempabc USING (tableDEF.refid = tableDEF.id) where table a=1;
This question may already be answered but I cannot find duplicates for it. If nothing in staightforward JDBC-Postgres way let me know other ways. Thanks!