分类在数据库中的作用是什么?

what is the role of categorization in database?

让我知道数据库中的分类是什么以及它的作用...

我从一个网站上得到的,我不明白... 分类是对单个子类型(或子类)进行建模的过程,其关系涉及多个不同的超类型(或超类)。到目前为止,所有讨论过的关系都是一个独特的超类型。但是,可能需要对具有多个超类型的单个 supertype/subtype 关系建模,其中超类型代表不同的实体集。

谢谢!

https://books.google.co.uk/books?id=9m382yDgxRsC&pg=PA287&lpg=PA287&dq=7.4.+Categorisation+Categorisation+is+a+process+of+modelling+of+a+single+subtype+(or+subclass)+with+a+relationship+that+involves+more+than+one+distinct+supertype+(or+superclass).&source=bl&ots=7JFawUEg3d&sig=peeXz5QajJFdkFHw0TzlvQFwix8&hl=ko&sa=X&ved=0ahUKEwi1u8iHwIHSAhWMVhQKHfr_AkkQ6AEIIDAA#v=onepage&q=7.4.%20Categorisation%20Categorisation%20is%20a%20process%20of%20modelling%20of%20a%20single%20subtype%20(or%20subclass)%20with%20a%20relationship%20that%20involves%20more%20than%20one%20distinct%20supertype%20(or%20superclass).&f=false

据我了解,正式分类是创建关系(类别)的过程,该关系(类别)包含元组,这些元组是超类元组并集的子集。该子集的元组是根据某些特征选择的。考虑一个例子:

比方说,我们有 Suppliers(id, name, address, email, bank_acct, paypal, ... etc.) 关系和 Customers(ssn, name, faname, email, address, paypal, ... etc.) 关系。因此,我们可以创建另一个关系,仅包含那些拥有贝宝账户的各方(供应商和客户) - Paypal_account_holders(id, name, address, paypal_acct, email ... etc.) 其中 Paypal_account_holders.idPaypal_account_holders 的代理主键和 [= 两者的外键15=] 和 Customers.paypal.

动机和优势:

  • 应用程序的通用接口;

  • 安全。当您仅允许用户访问时限制对表的访问 部分信息;

  • 简化查询;

  • 对特定类别执行一些业务规则;

  • 等等

    再说一遍,我是这么理解的。