show user ;select * from all_users;
pausedesc user_tables ;
select table_name from user_tables;
pausecolumn table_name heading Nom_de_l_utilisateur
select table_name from user_tables;pausecolumn object_name format a30
set pages 30
select object_name, object_type from user_objects order by object_type;
pausedesc user_constraints;
column constraint_name format a30
select constraint_name from user_constraints where table_name='&matable';能不能具体解释一下,并且哪里有相关资料??谢谢!!!

解决方案 »

  1.   

    show user ; 显示当前登陆用户select * from all_users; 显示所有用户desc user_tables ; 查看表user_tables的表结构column object_name format a30 是sqlplus中格式化名称长度,以便不折行显示set pages 30 同上select constraint_name from user_constraints where table_name='&matable'; 查询表的约束
      

  2.   

    sqlplus使用命令大全
    http://www.hackhome.com/InfoView/Article_162410_7.html
      

  3.   

    8).设置一页有多少行数 
    SQL> SET PAGES[IZE] {24n} 
    如果设为0,则所有的输出内容为一页并且不显示列标题