Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
下面的链接对 DB2 中的表类型进行了分类。
DB2 表类型
T = Table (untyped) U = Typed table V = View (untyped) W = Typed view
这些有什么区别,哪些是我们应该使用它们的条件?
另外,我们如何在创建表的过程中定义它?
类型表是基于 UDT(用户定义类型)定义的。它们可以在层次结构中具有级别并描述引用的对象(来自模型),并且该描述可以在其他表甚至存储过程中重用。(为了创建一个结构相同的表,不需要做create like,而是根据type创建表)
普通表是基于列定义的,但该定义不能在其他对象中重复使用,必须重新定义(重新定义列顺序和精度等)
看看文档:http: //publib.boulder.ibm.com/infocenter/db2luw/v10r1/topic/com.ibm.db2.luw.admin.structtypes.doc/doc/c0006606.html