java - JDBC query table names case insensitive? -
tl:dr; there way select table names case insensitive on jdbc?
i try extract table names database on jdbc connection. can
resultset tablesrst = connection.getmetadata().gettables( null, null, null, null );
this, however, returns tables, views etc. need first 10 match pattern. know can build myself manipulating arguments.
the case of pattern matters, cannot find table aap
if pattern a%
.
is there easy way query table names on jdbc, without having resort database-specific code?
that depends on database configuration. if turn off case sensitivity on database, i'm assuming aap come a%.
Comments
Post a Comment