在本机上安装一个SQL Server 2000个人版,或者直接下载SQL Server 2000的联机帮助安装程序,看联机帮助的说明。

解决方案 »

  1.   

    Creates a new table.
    SyntaxCREATE TABLE
    [
    database_name.[owner].
    | owner.
    ] table_name
    (
    { <column_definition>
    | column_name AS computed_column_expression
    | <table_constraint>
    } [,...n]
    )
    [ON {filegroup | DEFAULT} ]
    [TEXTIMAGE_ON {filegroup | DEFAULT} ]  <column_definition> ::= { column_name data_type }
    [ [ DEFAULT constant_expression ]
      | [ IDENTITY [(seed, increment ) [NOT FOR REPLICATION] ] ]
    ]
    [ ROWGUIDCOL ]
    [ <column_constraint>] [ ...n]  <column_constraint> ::= [CONSTRAINT constraint_name]
    {
    [ NULL | NOT NULL ]
    | [ { PRIMARY KEY | UNIQUE }
    [CLUSTERED | NONCLUSTERED]
    [WITH FILLFACTOR = fillfactor]
    [ON {filegroup | DEFAULT} ]]
      ]
    | [ [FOREIGN KEY]
    REFERENCES ref_table [(ref_column) ]
    [NOT FOR REPLICATION]
      ]
    | CHECK [NOT FOR REPLICATION]
    (logical_expression)
    }  <table_constraint> ::= [CONSTRAINT constraint_name]
    {
    [ { PRIMARY KEY | UNIQUE }
    [ CLUSTERED | NONCLUSTERED]
    { ( column[,...n] ) }
    [ WITH FILLFACTOR = fillfactor]
    [ON {filegroup | DEFAULT} ]
    ]
    | FOREIGN KEY
    [(column[,...n])]
    REFERENCES ref_table [(ref_column[,...n])]
    [NOT FOR REPLICATION]
    | CHECK [NOT FOR REPLICATION]
    (search_conditions)
    }
      

  2.   

    Modifies a table definition by altering, adding or dropping columns and constraints, or by disabling or enabling constraints and triggers.
    SyntaxALTER TABLE table
    { [ALTER COLUMN column_name
    { new_data_type [ (precision[, scale] ) ]
    [ NULL | NOT NULL ]
    | {ADD | DROP} ROWGUIDCOL
    }
    ]
    | ADD
    { [ <column_definition> ]
    |  column_name AS computed_column_expression
    }[,...n]
    | [WITH CHECK | WITH NOCHECK] ADD
    { <table_constraint> }[,...n]
    | DROP
    { [CONSTRAINT] constraint_name
    | COLUMN column
    }[,...n]
    | {CHECK | NOCHECK} CONSTRAINT
    {ALL | constraint_name[,...n]}
    | {ENABLE | DISABLE} TRIGGER
    {ALL | trigger_name[,...n]}
    }<column_definition> ::= { column_name data_type }
    [ [ DEFAULT constant_expression ]
      | [ IDENTITY [(seed, increment ) [NOT FOR REPLICATION] ] ]
    ]
    [ ROWGUIDCOL ]
    [ <column_constraint>] [ ...n]<column_constraint> ::= [CONSTRAINT constraint_name]
    {
    [ NULL | NOT NULL ]
    | [ { PRIMARY KEY | UNIQUE }
    [CLUSTERED | NONCLUSTERED]
    [WITH FILLFACTOR = fillfactor]
    [ON {filegroup | DEFAULT} ]]
      ]
    | [ [FOREIGN KEY]
    REFERENCES ref_table [(ref_column) ]
    [NOT FOR REPLICATION]
      ]
    | CHECK [NOT FOR REPLICATION]
    (logical_expression)
    }
    <table_constraint> ::= [CONSTRAINT constraint_name]
    { [ { PRIMARY KEY | UNIQUE }
    [ CLUSTERED | NONCLUSTERED]
    { ( column[,...n] ) }
    [ WITH FILLFACTOR = fillfactor]
    [ON {filegroup | DEFAULT} ]
    ]
    | FOREIGN KEY
    [(column[,...n])]
    REFERENCES ref_table [(ref_column[,...n])]
    [NOT FOR REPLICATION]
    | DEFAULT constant_expression
    [FOR column]
    | CHECK [NOT FOR REPLICATION]
    (logical_expression)
    }
      

  3.   

    SQL Server 2000中文联机帮助下载地址:http://www.microsoft.com/downloads/details.aspx?FamilyID=A6F79CB1-A420-445F-8A4B-BD77A7DA194B&displaylang=zh-cn
      

  4.   

    www.hanzhiguang.com 网站不错, 如果你英文好的话