T
tolu45
Hi, I am writing a code to retrieve all the primary keys of the tables
in the database. I tried to use
DatabaseMetadata dbmd = dbConnection.getMetaData();
ResultSet rs = dbmd.getprimarykeys(null,null ,"%"),
I do not get the result set in my vector which i created to store the
primarykeys. But when i explicitly write the name of the table like
ResultSet rs = dbmd.getprimarykeys(null,null, "movies"), i get the
primary key. DO someone know why i have this problem?
in the database. I tried to use
DatabaseMetadata dbmd = dbConnection.getMetaData();
ResultSet rs = dbmd.getprimarykeys(null,null ,"%"),
I do not get the result set in my vector which i created to store the
primarykeys. But when i explicitly write the name of the table like
ResultSet rs = dbmd.getprimarykeys(null,null, "movies"), i get the
primary key. DO someone know why i have this problem?