DB2 current schema

If I have an instance of a JDBC DB2 connection, how do I get the current schema?

Either a SQL statement would work, or just a JDBC method call.
mbevilacquaAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
Dave FordConnect With a Mentor Software Developer / Database AdministratorCommented:

This works for me ....
select current_schema  
from   sysibm.sysdummy1
;

Open in new window

0
 
mbevilacquaAuthor Commented:
Ah, sysdummy1, i was using sysdummy. Cheers!
0
All Courses

From novice to tech pro — start learning today.