如题,请达人指教

解决方案 »

  1.   

    EXEC TABLENAME;
    是再SQLPLUS里用的,PL/SQL里面再SQL输入框内无法使用。
      

  2.   

    “EXEC sp_columns 表名”在sql中是什么意思,如果是得到一个表的所有列的话在ORACLE的SQLPLUS中就是DESC 表名不好意思,没怎么用过sql server
      

  3.   

    sp_columns是sqlserver中的过程,类似于oracle中的desc 表名 
    在sqlserver中
    exec 是execute的简写,具体的用法,请看:
    http://blog.csdn.net/gaoyunpeng/archive/2007/03/19/1533741.aspx
    sp_columns是返回当前环境中可查询的指定表或视图的列信息。
    在oracle中可以使用desc 表名或者select * from user_tab_columns where table_name = 表名。
      

  4.   

    exec sp_rename '旧表','新表';