0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Oracleで特定のテーブルに設定された主キーやインデックス(複合インデックス)を確認SQL

Last updated at Posted at 2022-08-12

やり方

『USER_IND_COLUMNS』という名前のテーブルに情報がある。
SQLで取ってこれる。

SELECT * 
FROM USER_IND_COLUMNS 
WHERE TABLE_NAME = 'テーブル名' 
ORDER BY INDEX_NAME, COLUMN_POSITION;

参考サイトさん

バージョン

Oracle Database 11g Release 11.2.0.1.0 - 64bit Production

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?