<bdo id='P2Fc5'></bdo><ul id='P2Fc5'></ul>
      <i id='P2Fc5'><tr id='P2Fc5'><dt id='P2Fc5'><q id='P2Fc5'><span id='P2Fc5'><b id='P2Fc5'><form id='P2Fc5'><ins id='P2Fc5'></ins><ul id='P2Fc5'></ul><sub id='P2Fc5'></sub></form><legend id='P2Fc5'></legend><bdo id='P2Fc5'><pre id='P2Fc5'><center id='P2Fc5'></center></pre></bdo></b><th id='P2Fc5'></th></span></q></dt></tr></i><div id='P2Fc5'><tfoot id='P2Fc5'></tfoot><dl id='P2Fc5'><fieldset id='P2Fc5'></fieldset></dl></div>

        <small id='P2Fc5'></small><noframes id='P2Fc5'>

        <legend id='P2Fc5'><style id='P2Fc5'><dir id='P2Fc5'><q id='P2Fc5'></q></dir></style></legend>
        <tfoot id='P2Fc5'></tfoot>
      1. ON [PRIMARY] 是什么意思?

        What does ON [PRIMARY] mean?(ON [PRIMARY] 是什么意思?)
      2. <tfoot id='Rezj3'></tfoot>

        <small id='Rezj3'></small><noframes id='Rezj3'>

            <i id='Rezj3'><tr id='Rezj3'><dt id='Rezj3'><q id='Rezj3'><span id='Rezj3'><b id='Rezj3'><form id='Rezj3'><ins id='Rezj3'></ins><ul id='Rezj3'></ul><sub id='Rezj3'></sub></form><legend id='Rezj3'></legend><bdo id='Rezj3'><pre id='Rezj3'><center id='Rezj3'></center></pre></bdo></b><th id='Rezj3'></th></span></q></dt></tr></i><div id='Rezj3'><tfoot id='Rezj3'></tfoot><dl id='Rezj3'><fieldset id='Rezj3'></fieldset></dl></div>
              <bdo id='Rezj3'></bdo><ul id='Rezj3'></ul>
              <legend id='Rezj3'><style id='Rezj3'><dir id='Rezj3'><q id='Rezj3'></q></dir></style></legend>

                    <tbody id='Rezj3'></tbody>
                  本文介绍了ON [PRIMARY] 是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在创建一个 SQL 安装脚本,并以其他人的脚本为例.这是脚本的示例:

                  I'm creating an SQL setup script and I'm using someone else's script as an example. Here's an example of the script:

                  SET ANSI_NULLS ON
                  GO
                  SET QUOTED_IDENTIFIER ON
                  GO
                  CREATE TABLE [dbo].[be_Categories](
                      [CategoryID] [uniqueidentifier] ROWGUIDCOL  NOT NULL CONSTRAINT [DF_be_Categories_CategoryID]  DEFAULT (newid()),
                      [CategoryName] [nvarchar](50) NULL,
                      [Description] [nvarchar](200) NULL,
                      [ParentID] [uniqueidentifier] NULL,
                   CONSTRAINT [PK_be_Categories] PRIMARY KEY CLUSTERED 
                  (
                      [CategoryID] 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
                  

                  有人知道 ON [PRIMARY] 命令的作用吗?

                  Does anyone know what the ON [PRIMARY] command does?

                  推荐答案

                  在 Microsoft SQL Server 中创建数据库时,您可以拥有多个文件组,其中在多个位置、目录或磁盘中创建存储.每个文件组都可以命名.PRIMARY 文件组是默认的,它总是被创建,因此您提供的 SQL 在 PRIMARY 文件组上创建您的表.

                  When you create a database in Microsoft SQL Server you can have multiple file groups, where storage is created in multiple places, directories or disks. Each file group can be named. The PRIMARY file group is the default one, which is always created, and so the SQL you've given creates your table ON the PRIMARY file group.

                  请参阅 MSDN完整的语法.

                  这篇关于ON [PRIMARY] 是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  How do I split flat file data and load into parent-child tables in database?(如何拆分平面文件数据并加载到数据库中的父子表中?)
                  How to import CSV into sqlite using RSqlite?(如何使用 RSqlite 将 CSV 导入 sqlite?)
                  Import CSV to Update rows in table(导入 CSV 以更新表中的行)
                  Importing MaxMind#39;s GeoLite2 to MySQL(将 MaxMind 的 GeoLite2 导入 MySQL)
                  Import / Export database with SQL Server Server Management Studio(使用 SQL Server Server Management Studio 导入/导出数据库)
                  How do you import a large MS SQL .sql file?(如何导入大型 MS SQL .sql 文件?)

                  <tfoot id='1qv8p'></tfoot>

                  <small id='1qv8p'></small><noframes id='1qv8p'>

                  <i id='1qv8p'><tr id='1qv8p'><dt id='1qv8p'><q id='1qv8p'><span id='1qv8p'><b id='1qv8p'><form id='1qv8p'><ins id='1qv8p'></ins><ul id='1qv8p'></ul><sub id='1qv8p'></sub></form><legend id='1qv8p'></legend><bdo id='1qv8p'><pre id='1qv8p'><center id='1qv8p'></center></pre></bdo></b><th id='1qv8p'></th></span></q></dt></tr></i><div id='1qv8p'><tfoot id='1qv8p'></tfoot><dl id='1qv8p'><fieldset id='1qv8p'></fieldset></dl></div>

                      <bdo id='1qv8p'></bdo><ul id='1qv8p'></ul>

                        • <legend id='1qv8p'><style id='1qv8p'><dir id='1qv8p'><q id='1qv8p'></q></dir></style></legend>
                              <tbody id='1qv8p'></tbody>