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.

Accessで複合インデックス設定

Posted at

概要

例えば下記のようなテーブルがある。
image.png

主キーとは別に 『からむ1』『からむ2』の2つをセットにしてインデックスを設定したい場合。

やり方

テーブルを開いた状態で、『テーブルデザイン』 → 『インデックス』。
image.png

↓ こういったウィンドウが出てくる。
image.png

下記のように追加してあげればOK。
image.png

主キーとは別に『からむ1』『からむ2』の2つを含んだインデックス『idx1』を作ることができた。

複合キーを設定したい場合

参考サイトさん

バージョン

Windows 10 Pro 22H2 19045.3155
Microsoft Access for Microsoft 365 MSO (バージョン 2305 ビルド 16.0.16501.20074) 32 ビット

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?