Polymorphism in SQL database tables?

前端 未结 7 1207
悲&欢浪女
悲&欢浪女 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 03:01

    Since you tagged this PostgreSQL, you could look at http://www.postgresql.org/docs/8.1/static/ddl-inherit.html but beware the caveats.

提交回复
热议问题