📜  在 SQL Server 中创建表 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:16.829000             🧑  作者: Mango

代码示例3
-- ********************** For more tutorial - Visit NAYCode.com 
CREATE TABLE [dbo].[Customers](
    [Cust_Id] [int] NOT NULL,
    [Cust_Name] [nvarchar](50) NULL,
    [Cust_Address] [nvarchar](100) NULL,
    [Cust_Phone] [nvarchar](50) NULL,
    [Cust_DOB] [datetime] NULL,
 CONSTRAINT [PK_Customers] PRIMARY KEY CLUSTERED 
(
    [Cust_Id] 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