سؤال

I need a way to find out if a present table in HSQLDB has any indices, and if so, fetch their detailed information (column_name, type, isPrimary ...etc)

هل كانت مفيدة؟

المحلول

select *
from INFORMATION_SCHEMA.SYSTEM_INDEXINFO

More details about the system views can be found in the manual: http://hsqldb.org/doc/2.0/guide/databaseobjects-chapt.html#dbc_information_schema

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top