为什么有column就错误,
alter table abc add c varchar(10);就是对的

解决方案 »

  1.   


    add不用加column
    如果是drop 就要用到!
    alter table abc drop column c
      

  2.   

    语法要求,如此建立可以看看这个贴子
    很全的help.sql Oracle的sqlplus环境下的帮助系统
      

  3.   

    连接到:
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining optionsSQL> help alter user; ALTER USER
     ---------- Use this command to change any of the following characteristics of a
     database user:   *  authentication mechanism of the user
       *  password
       *  default tablespace for object creation
       *  tablespace for temporary segments created for the user
       *  tablespace access and tablespace quotas
       *  limits on database resources
       *  default roles ALTER USER user
       { IDENTIFIED {BY password | EXTERNALLY
                    | GLOBALLY AS 'CN=user'}
       | DEFAULT TABLESPACE tablespace
       | TEMPORARY TABLESPACE tablespace
       | QUOTA { integer [K | M] | UNLIMITED} ON tablespace
       [ QUOTA { integer [K | M] | UNLIMITED} ON tablespace] ...
       | PROFILE profile
       | PASSWORD EXPIRE
       | ACCOUNT { LOCK | UNLOCK }
       | DEFAULT ROLE { role [, role] ...
                      | ALL [EXCEPT role [, role] ...]
                      | NONE} } ... For detailed information on this command, see the Oracle8 Server SQL
     Reference.
      

  4.   

    很全的help.sql 安装Oracle的sqlplus帮助系统