Can we create multicolumn unique indexes on MS access databases?

后端 未结 4 1863
走了就别回头了
走了就别回头了 2020-12-01 10:53

We\'d like to prevent record duplication in our MS access database using a multicolumn unique index. Because of how the data is sent (via network), duplicate data is sometim

4条回答
  •  独厮守ぢ
    2020-12-01 11:18

    Turns out you can create a multi-column unique index on an MS access database, but it's a little crazy if you want to do this via the GUI. There's also a limitation; you can only use 10 columns per index.

    Anyway, here's how you create a multi-column unique index on an MS access database.

    1. Open the table in design mode, and Design, select Indexes.
    2. Create a new row and enter a value in the Index Name cell,
    3. Choose the first column from the drop down menu.
    4. Add a new row and leave the Index Name cell blank.
    5. Choose the second column, and so on.

    Here's what it should look like:

提交回复
热议问题