|
|||||||||||
|
[JDBC] determine if a column is UNIQUE using metadata
From: Peter Michaux <petermichaux(at)gmail.com>
Date: Sat Jan 19 2008 - 19:43:00 EST
I've been trying to determine if a column is UNIQUE. I've been trying to use the following connection.getMetaData().getIndexInfo(null, "", "comment", false, true); but it always says that the columns are not unique. Am I on the right track with the above technique or should I be trying to do something totally different?
Thanks,
---------------------------(end of broadcast)---------------------------TIP 2: Don't 'kill -9' the postmaster Received on Sat Jan 19 19:45:07 2008 This archive was generated by hypermail 2.1.8 : Wed Jun 18 2008 - 23:43:08 EDT |
||||||||||
|
|||||||||||