Oracle 的 约束是是否可以复用?(调用约束名称就可以直接使用该约束)在哪里可以管理约束。
plsql有这个功能么?

解决方案 »

  1.   

    直接用PL/SQL DEVELOPER 点击TABLES 中check constraints
      

  2.   

    从约束的定义来看是不能重用的。Oracle Database enables you to apply constraints both at the table and column level. A constraint specified as part of the definition of a column or attribute is called an inline specification. A constraint specified as part of the table definition is called an out-of-line specification.http://download.oracle.com/docs/cd/E11882_01/server.112/e10713/datainte.htm#CNCPT322
      

  3.   

    哇塞~引出老虎了~~~了解~~既然是table ,column,attribute 的一部分 那自然是不可引用,也不可重用的了。能重用多好,不过这部分和业务联系太过紧密的 数据约束还是放到 代码中做好了~~毕竟数据库不是处理业务的地方呵呵。当时设计plsql的工程师们大概也是那么想的吧~嘿嘿