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:是否允许列锁定

  • 相关阅读:
    gan研究思路
    官方文档的学习
    构建Pytorch虚拟环境
    桌面显示【我的电脑】
    【VUE】计数器模块
    【品优购】字体图标定位的做法
    029垃圾分代回收机制
    03特殊for语句
    28包 package
    jdk特性
  • 原文地址:https://www.cnblogs.com/mibing/p/6522872.html
Copyright © 2011-2022 走看看