Oracle的约束是否可以复用
Oracle 的 约束是是否可以复用?(调用约束名称就可以直接使用该约束)在哪里可以管理约束。 plsql有这个功能么?
SQL code: 直接用PL/SQL DEVELOPER 点击TABLES 中check constraints引用 SQL code直接用PL/SQL DEVELOPER 点击TABLES 中check constraints 找到了 呵呵 请问如何在写语句的时候 是否可以直接使用约束名 来引用该约束 。 是创建的表拥有该约束么,约束是归属于表的存在 随表存在而存在 随表删除而消失。或者说约束是独立的存在,任何表使用的只是对它的引用呢? 从约束的定义来看是不能重用的。 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 哇塞~引出老虎了~~~了解~~既然是table ,column,attribute 的一部分 那自然是不可引用,也不可重用的了。 能重用多好,不过这部分和业务联系太过紧密的 数据约束还是放到 代码中做好了~~毕竟数据库不是处理业务的地方呵呵。当时设计plsql的工程师们大概也是那么想的吧~嘿嘿
相关问答:
<?php getenv("ORACLE_HOME"); $conn=ocilogon("test","test","test_db"); if($conn) echo success; &nb ......
with adod_dict do begin close; commandtext:='select bgqxcode,count(*) wjsl from wscl_wsda_file where wjnd=:tnd group by bgqxcode'; ......
我有一张表有个字段名称是starttime 类型是DATE ,其中有一行的值是"11:00:00",我想把这一列选出来,语句如下: select * from routebanci where starttime='11:00:00' and routename='*** ......
关于ORACLE认证考试都包括哪些啊? 小弟对于这个认证不怎么了解,明白人给讲讲。 我就听说过有OCP认证什么的... 这个不错,你可以了解下 http://www.oracle.com.cn/viewthread.php?tid=4834&extra=pag ......