zoukankan      html  css  js  c++  java
  • sql 创建新表时的完成格式

    create table [dbo].[Customer]
    (
    CustomerID int identity(1,1) not null,
    [Name] [nvarchar](50) null,
    [Address] [nvarchar](50) null,
    [City] [nvarchar](50) null,
    [State] [nvarchar](50) null,
    [ZipCode] [nvarchar](50) null,
    [Phone] [nvarchar](50) null
    constraint [PK_Customer] primary key clustered
    (
    CustomerID ASC
    ) WITH(pad_index=off,statistics_norecompute=off,ignore_dup_key=off,allow_row_locks=on,allow_page_locks=on) on [primary]
    ) on [primary]

    go

    pad_index:指定填充索引的内部节点的行数

    statistics_norecompute:指定分布统计不自动更新

    ignore_dup_key:当选择此选项时,SQL Server 返回一个错误信息,跳过此行数据的插入,继续执行下面的插入数据的操作:当没选择此选项时,SQL Server 不仅会返回一个错误信息,还会回滚(Rolls Back)整个INSERT

    allow_row_locks:是否允许行锁定

    allow_page_locks:是否允许列锁定

  • 相关阅读:
    第二次冲刺(二)
    第二次冲刺(一)
    5月30日学习日志
    5月29日学习日志
    5月28日学习日志
    5月27日学习日志
    5月26日学习日志
    粒子群算法-PSO
    花授粉优化算法-python/matlab
    花授粉优化算法
  • 原文地址:https://www.cnblogs.com/mibing/p/6522872.html
Copyright © 2011-2022 走看看