
oracle
ss7424
这个作者很懒,什么都没留下…
展开
-
怎样查外键建在哪个表上,查看约束【转载】
有时候删除某张表记录的时候,会报错外键约束不能删除。 如果不了解表之间的关系,可以通过以下语句查询到外键是建在哪张表上的: select * from dba_constraints where constraint_name='xxx' and constraint_type = 'R'; 例如: 执行delete from t_bme_task;时报错: ORA-0229转载 2017-06-06 09:32:45 · 1111 阅读 · 0 评论 -
oracle对表空间 USERS 无权限(转载)
权限赋予即可:alter user 用户名 quota unlimited on users; 下面是我SQLPLUS实现users权限的赋予: SQL> connect daqing/thinking 已连接。 SQL> create table stud(name nvarchar2(10),age integer); create table stud(name nvarc转载 2017-06-04 18:56:33 · 3218 阅读 · 0 评论 -
oracle允许所有用户访问一个用户的表的方法
SQL> create user zl identified by zl; 用户已创建。 SQL> alter user zl quota unlimited on system; 用户已更改。 SQL> grant create table to zl; 授权成功。 SQL> grant connect to zl; 授权成功转载 2017-06-04 19:30:13 · 767 阅读 · 0 评论