Hi all,
I am trying to get the primary keys from a VIEW use the
DataBaseMetaData.
So I tried :
DatabaseMetaData aDBMD = theConnection.getMetaData();
ResultSet aResultSet = aDBMD.getPrimaryKeys("","",aTableName);
while (aResultSet.next()) {
aColumnName = aResultSet.getString(4);
System.out.println(aColumnName);
But the ResultSet is Empty. (and I am sure to have a primary key...)Quote:}
This code works very well when I try to get the primary keys from a
TABLE...
So can u help me?
thanks
bye
Bruno
Sent via Deja.com http://www.deja.com/
Before you buy.