sql*plus里面:
create table tbname (cname varchar2(10) primary key,...);

解决方案 »

  1.   

    CREATE TABLE [schema.]table
    (column datatype [DEFAULT expr][column_constraint],
    ...
    [table_constraint]);
    找本书先看看吧,基本操作啊!
      

  2.   

    -- Create table
    create table AA
    (
      SJCDDM VARCHAR2(10),
      CDDM   VARCHAR2(10) not null,
      CDMC   VARCHAR2(50),
      SJQXDM VARCHAR2(6) not null,
      JSDM   VARCHAR2(8) not null
    );
    这是一个例子
      

  3.   

    CREATE TABLE [schema.]table 
         ( { column datatype [DEFAULT expr] [column_constraint] ...        | table_constraint} 
        [, { column datatype [DEFAULT expr] [column_constraint] ... 
           | table_constraint} ]...) 
        [ [PCTFREE  integer] [PCTUSED  integer] 
          [INITRANS integer] [MAXTRANS integer] 
          [TABLESPACE tablespace] 
          [STORAGE storage_clause] 
        [  PARALLEL ( [ DEGREE { integer | DEFAULT } ] 
                      [ INSTANCES { integer | DEFAULT } ] 
                    )      | NOPARALLEL ] 
        [  CACHE | NOCACHE  ] 
        | [CLUSTER cluster (column [, column]...)] ] 
        [ ENABLE   enable_clause 
        | DISABLE disable_clause ] ... 
        [AS subquery] 
      

  4.   

    create table table_name(
    col varchar2(10)
    ...
    ...
    )