Polymorphism in SQL database tables?

前端 未结 7 1174
悲&欢浪女
悲&欢浪女 2020-11-27 02:39

I currently have multiple tables in my database which consist of the same \'basic fields\' like:

name character varying(100),
description text,
url character         


        
7条回答
  •  渐次进展
    2020-11-27 02:59

    What you are looking for is called 'disjoint subtypes' in the relational world. They are not supported in sql at the language level, but can be more or less implemented on top of sql.

提交回复
热议问题