> >tolu45 schrieb:
> >> Hi, I am writing a code to retrieve all the primary keys of the tables
[quoted text clipped - 16 lines]
> clause. (There may be some implementations where % would work - but I'd be
> surprised.)
Actually, certain methods in java.sql.DatabaseMetaData will accept one or more arguments
containing wildcards (LIKE pattern), such as, getTables(). See the docs. However,
getPrimaryKeys() does not, which was Michael's point.
To the OP: the solution is to use getTables() to get a set of tables and then invoke
getPrimaryKeys() on each table from that set.

Signature
Lee Fesperman, FFE Software, Inc. (http://www.firstsql.com)
==============================================================
* The Ultimate DBMS is here!
* FirstSQL/J Object/Relational DBMS (http://www.firstsql.com)