→要先找出正要刪的表 被哪個外來鍵引用
SELECT A.*
FROM user_constraints A,
user_constraints B
WHERE b.table_name = '表名'
AND a.constraint_type = 'R'
AND a.r_constraint_name = b.constraint_name;
SELECT A.*
FROM user_constraints A,
user_constraints B
WHERE b.table_name = '表名'
AND a.constraint_type = 'R'
AND a.r_constraint_name = b.constraint_name;
StackTraceElement[] stacktrace = Thread.currentThread().getStackTrace();
StackTraceElement e = stacktrace[2];
String methodName = e.getMethodName();
String classdName = e.getClassName();
It<Foo> fooIt = it(fooList);
for (Foo foo : fooIt) {
//for each foo in fooList...
foo.doSomething();
//if you need the current index:
System.out.println(fooIt.getIndex());
}
select count(*) from v$process;
select value from v$parameter where name='processes';
alter system set processes=300 scope=spfile;