เปิดบริการตั้งแต่ 29 มกราคม 2550 - ปัจจุบัน
| เปิดบริการมาแล้ว 17 ปี 4 เดือน 27 วัน
single page jaa

Access uses table matchmaking to decide ideas on how to sign-up dining tables when you should use him or her within the a database object

Access uses table matchmaking to decide ideas on how to sign-up dining tables when you should use him or her within the a database object

As to why perform dining table matchmaking?

You may make desk relationships clearly with the Matchmaking screen, otherwise because of the pulling a field in the Career Record pane. There are some reasons to perform table relationships in advance of you will be making almost every other databases stuff, like variations, questions and you can account.

To work with info away from more than one desk, you tend to need manage a query you to definitely suits the brand new tables. The new inquire functions coordinating the costs in the main key world of the first desk having a foreign key career in the following dining table. Like, to go back rows you to definitely list all of the instructions for each consumer, your construct an inquiry one to satisfies the shoppers table towards Commands dining table based on the Customers ID industry. In the Dating screen, you could by hand establish the brand new sphere to join. But, for those who have a relationship laid out between your dining tables, Supply offers the standard register, in line with the established table relationships. In addition, if you utilize among the inquire wizards, Availableness spends all the info it accumulates in the table dating your have already outlined to present your having informed possibilities also to prepopulate assets configurations with appropriate standard viewpoints.

After you framework a type or declaration, Supply spends all the info they gathers regarding desk relationships your have discussed to provide your which have told choice also to prepopulate possessions configurations having suitable standard beliefs.

Table matchmaking certainly are the base where you can enforce referential ethics to simply help stop orphan suggestions on your databases. An enthusiastic orphan listing try an archive that have a mention of the other record that doesn’t exist – eg, your order number you to definitely sources a buyers listing that doesn’t exists.

After you structure a database, your separate your details into tables, all of with a primary secret. You then add international keys to related tables you to definitely site people first secrets. These types of overseas trick-number one secret pairings function the cornerstone to have desk relationships and multi-desk inquiries. It is necessary these particular international secret-primary key references remain synchronized. Referential stability, that’s determined by dining table matchmaking, ensures one to references sit synchronized.

Understanding referential integrity

Once you design a database, your separate your databases information into of a lot subject-oriented tables to attenuate investigation redundancy. You then offer Availableness a way to give the data straight back with her by the establishing well-known areas into the associated dining tables. For example, so you’re able to depict a-one-to-of a lot relationship you are taking an important trick regarding the “one” dining table and you will include it a supplementary career on the “many” dining table. To carry the content straight back along with her, Availableness takes the benefits throughout the “many” desk and you can looks in the involved really worth in the “one” table. Such as this the values on the “many” desk resource this new involved philosophy throughout the “one” desk.

Guess you have got a single-to-of many relationship anywhere between Shippers and you can Instructions therefore want to erase good Shipper. If the shipper we would like to remove has actually commands about Requests desk, those people sales becomes “orphans” when you erase new Shipper number. This new instructions tend to still have good shipper ID, however the ID will not be legitimate, since the record that it references don’t exists.

The goal of referential ethics will be to prevent orphans and sustain records within the connect to make sure that that it hypothetical situation never ever happen.

You impose referential stability from the providing they getting a desk relationship. Immediately following implemented, Supply denies any process one violates referential integrity for the table relationship. This means Availableness commonly refute both updates that alter the address off a research, and you will deletions one get rid of the target out of a research. You’ll be able you might have a completely appropriate have to change an important trick getting a beneficial shipper that has purchases on the Requests desk. To have for example times, everything you want is actually for Entry to immediately revision the the fresh affected rows included in an individual operation. In that way, Supply implies that the improve is done completely to make sure that your own flirthookup free trial databases is not left in the an inconsistent county, with some rows up-to-date and several maybe not. Hence Accessibility helps the brand new Cascade Revision Relevant Areas choice. Once you impose referential ethics and select the fresh new Cascade Update Relevant Fields alternative, while following revision an initial secret, Availableness immediately status all areas one to site an important key.

Leave a Reply

Your email address will not be published. Required fields are marked *