字段的信息记录在系统表:col中
解决方案 »
- 我用sum求出两个字段个子的和值,怎么用sql把这两个字段的和值在求和一起显示出来
- 大家好,大家帮我看一下这个sql语句怎么写啊?
- orcale9i无法登陆management server的问题
- 百分请教一个很简单的SQL语句
- sql语句中的遇到的一个问题
- 求助:过程调用异常
- 各位有把Oracle放到公网上,客户端通过ADSL访问的方式么??安全怎么保障??
- 如何设置同时使用oracle数据库的用户数?
- 内存小于512M可以装oracle9i吗
- 我把SQLSERVER2000的几个表导到ORACLE中,即发现SQL的表中值为中文(如:男)的全部都变成了“?”号??
- 怎么设置最大的会话数量
- 这种语句什意思啊??select 'drop '||tabtype||' '||tname from tab;我以system登录,不小心执行了这句..
is
at_str varchar(2000);
str_tname varchar(2000);
acl_str varchar(2000);
cl_tname varchar(2000);
type t_cur is ref cursor;
at_cur t_cur;
acl_cur t_cur;
begin
at_str:='select TABLE_NAME from user_tables';
open at_cur for at_str;
loop
fetch at_cur into str_tname;
acl_str:='select COLUMN_NAME from user_tab_cols where TABLE_NAME ='''||str_tname||'''';
open acl_cur for acl_str;
loop
fetch acl_cur into cl_tname;
DBMS_output.Put_Line(cl_tname);
exit when acl_cur%notfound;
end loop;
close acl_cur;
exit when at_cur%notfound;
end loop;
close at_cur;
end curtest;good luck