单选题下列关于CREATE UNIQUE INDEX IDX1 ON T(C1,C2)语句作用的说法,正确的是()。A在C1和C2列上分别建立一个唯一聚集索引B在C1和C2列上分别建立一个唯一非聚集索引C在C1和C2列的组合上建立一个唯一聚集索引D在C1和C2列的组合上建立一个唯一非聚集索引
单选题
下列关于CREATE UNIQUE INDEX IDX1 ON T(C1,C2)语句作用的说法,正确的是()。
A
在C1和C2列上分别建立一个唯一聚集索引
B
在C1和C2列上分别建立一个唯一非聚集索引
C
在C1和C2列的组合上建立一个唯一聚集索引
D
在C1和C2列的组合上建立一个唯一非聚集索引
参考解析
解析:
暂无解析
相关考题:
( 31 )下列 SQL 语句中,哪一(些)组包含了不正确的定义语句?I . CREATE TABLE … CREATE VIEW … CREATE INDEX …II . DROP TABLE … DROP VIEW … DROP INDEX …III . ALTER TABLE … ALTER VIEW … ALTER INDEX …A )只有 IB )只有 IIC )只有 IIID ) I 和 II
(32)下列 SQL 的数据定义语句组中,( )包含了不正确的数据定义语句。Ⅰ.CREATE TABLE? CREATE VIEW? CREATE INDEX?Ⅱ.DROP TABLE? DROP VIEW? DROP INDEX?Ⅲ.ALTER TABLE? ALTER VIEW? ALTER INDEX?A)仅ⅠB)仅ⅡC)仅ⅢD)都包含
在SQL Server 2008的某用户数据库中,设有T表,现要在T表的c1列和c2列上建立一个复合唯一聚集索引,其中c1列值重复率为20%,c2列为l0%。请补全下列语句建立一个性能最优的索引:CREATE UNIQUE CLUSTERED INDEX Idxl ON T(【7】)
下列SQL语句中,包含了不正确定义语句的组是( )。Ⅰ. CREATE TABLE CREATE VIEW CREATE INDEXⅡ. DROP TABLE DROP VIEW DROP INDEXⅢ. ALTER TABLE ALTER VIEW ALTER INDEXA)只有IB)只有ⅡC)只有ⅢD)Ⅰ和Ⅱ
根据SQL标准,要创建唯一索引该使用下面哪种语句?()A CREATE UNIQUE INDEXB CREATE CLUSTER INDEXC CREATE ONLY INDEXD CREATE PRIMARY INDEX
下列SQL的数据定义语句组中,哪一(些)组包含了不正确的数据定义语句?Ⅰ.CREATE TABLE… CREATE VIEW… CREATE INDEX…Ⅱ.DROP TABLE… DROP VIEW… DROP INDEX…Ⅲ.ALTER TABLE… ALTER VIEW… ALTER INDEX…A.仅ⅠB.仅ⅡC.仅ⅢD.都包含
在SQL Server 2000的某用户数据库中,设有T表,现要在T表的c1列和c2列上建立一个复合唯一聚集索引,其中c1列值重复率为20%,c2列为10%。请补全下列语句建立一个性能最优的索引:CREATE UNIQUE CLUSTERED INDEX Idx1 ON T(______)
下列SQL的数据定义语句组中,哪一组是正确的?A.CREATE SCHEMA...,DROP SCHEMA…,ALTER SCHEMA…B.CREATE TABLE......,DROP TABLE....,ALTER TABLE....C.CREATE VIEW..:,DROP VIEW...,ALTER VIEW…D.CREATE INDEX...,DROP INDEX…,ALTER INDEX…
下列SQL语言的定义语句组中,哪一(些)组包含了不正确的定义语句?I . CREATE TABLE...CREATE VIEW... CREATE INDEX...Ⅱ. DROP TABLE... DROP VIEW... DROP INDEX...Ⅲ. ALTER TABLE...ALTER VIEW...ALTER INDEX...
Given the following DDL for the PARTS table:CREATE TABLE parts (part_no INT(9) NOT NULL, part_name VARCHAR(24), part_remain INT(9));All part numbers entered will be different and all rows should be displayed in order of increasing part numbers whenever the table is queried. Which of the following create index statements will meet this criteria and require the least amount of storage for the index object?()A.CREATE UNIQUE INDEX idx_partno ON parts(part_no)B.CREATE UNIQUE INDEX idx_partno ON parts(part_name ASC)C.CREATE UNIQUE INDEX idx_partno ON parts(part_name, part_no ASC)D.CREATE UNIQUE INDEX idx_partno ON parts(part_no, part_name ASC)
在表S中对学号SN按升序建立名为SNINDEX的索引,正确的是______。A.CREATE INDEX SNINDEX WITH S(SN)B.CREATE UNIQUE INDEX SNINDEX ON S(SN)C.CREATE SNNIDEX ON S(SN)D.CREATE SNINDEX INDEX ON S(SN)
下列哪种方法不能用于创建索引?_______A.使用CREATE INDEX语句B.使用CREATE TABLE语句C.使用ALTER TABLE语句D.使用CREATE DATABASE语句
已知关系R(A,B,C),有定义索引的语句:create unique clustered index idxl on R(B)。下列关于idxl的说法,正确的是( )。 A.idxl既是唯一索引,也是聚集索引B.idxl既是主索引,也是聚集索引C.idxl既是唯一索引,也是主索引D.idxl既不是主索引,也不是聚集索引
在SQL Server 2008中,设有商品表(商品号,商品名,生产日期,单价,类别)。现经常需要执行下列查询: SELECT 商品号, 商品名, 单价 FROM 商品表 WHERE 类别 IN (′食品′,′家电′) ORDER BY 商品号 现需要在商品表上建立合适的索引来提高该查询的执行效率。下列建立索引的语句,最合适的是( )。A.CREATE INDEX Idx1 ON 商品表(类别)B.CREATE INDEX Idx1 ON 商品表(商品号,商品名,单价)C.CREATE INDEX Idx1 ON 商品表(类别,商品号,INCLUDE (商品名,单价)D.CREATE INDEX Idx1 ON 商品表(商品号,INCLUDE (商品名,单价,WHERE 类别 = '食品' OR 类别 = '家电'
在下列SQL语句中,( )包含了不正确的定义语句。Ⅰ、CREATE TABLE CREATE VIEW CREATE INDEXⅡ、DROP TABLE DROP VIEW DROP INDEXⅢ、ALTER TABLE ALTER VIEW ALTER INDEXA)Ⅰ和ⅡB)只有ⅡC)只有ⅢD)Ⅱ和Ⅲ
Table TAB1 was created using the following statement: CREATE TABLE tab1 (c1 INT, c2 INT, c3 INT, c4 INT, c5 INT); If column C1 is unique and queries typically access columns C1, C2 and C3 together, which statement(s) will createindex(es) that will provide optimal query performance?()A、CREATE UNIQUE INDEX xtab1 ON tab1 (c1); CREATE INDEX xtab2 ON tab1 (c2) INCLUDE (c3) B、CREATE UNIQUE INDEX xtab1 ON tab1 (c1) INCLUDE (c2, c3) C、CREATE UNIQUE INDEX xtab1 ON tab1 (c3, c2, c1) D、CREATE UNIQUE INDEX xtab1 ON tab1 (c2) INCLUDE (c1, c3)
For which two constraints does the Oracle Server implicitly create a unique index? ()A、NOT NULLB、PRIMARY KEYC、FOREIGN KEYD、CHECKE、UNIQUE
Table TAB1 was created using the following statement: CREATE TABLE tab1 (c1 INT, c2 INT, c3 INT, c4 INT, c5 INT); If column C1 is unique and queries typically access columns C1 and C2 together, which statement(s) will create index(es) that will provide optimal query performance? ()A、 CREATE UNIQUE INDEX xtab1 ON tab1 (c1) include (c2)B、 CREATE UNIQUE INDEX xtab1 ON tab1 (c1); CREATE INDEX xtab2 ON tab1 (c3) INCLUDE (c2) C、 CREATE UNIQUE INDEX xtab1 ON tab1 (c2, c1)D、 CREATE UNIQUE INDEX xtab1 ON tab1 (c2) INCLUDE (c1)
SQL语言中建立惟一性索引的命令是()A、CREATE INDEX索引名ON基本表名(属性名)B、CREATE INDEX UNIQUE索引名ON基本表名(属性名)C、CREATE UNIQUE INDEX索引名ON基本表名(属性名)D、CREATE DISTINCT INDEX索引名ON基本表名(属性名)
下列关于CREATE UNIQUE INDEX IDX1 ON T(C1,C2)语句作用的说法,正确的是()。A、在C1和C2列上分别建立一个唯一聚集索引B、在C1和C2列上分别建立一个唯一非聚集索引C、在C1和C2列的组合上建立一个唯一聚集索引D、在C1和C2列的组合上建立一个唯一非聚集索引
Given the following DDL for the PARTS table:CREATE TABLE parts (part_no INT(9) NOT NULL, part_name VARCHAR(24), part_remain INT(9));All part numbers entered will be different and all rows should be displayed in order of increasing part numbers whenever the table is queried. Which of the following create index statements will meet this criteria and require the least amount of storage for the index object?()A、CREATE UNIQUE INDEX idx_partno ON parts(part_no)B、CREATE UNIQUE INDEX idx_partno ON parts(part_name ASC)C、CREATE UNIQUE INDEX idx_partno ON parts(part_name, part_no ASC)D、CREATE UNIQUE INDEX idx_partno ON parts(part_no, part_name ASC)
单选题Table TAB1 was created using the following statement: CREATE TABLE tab1 (c1 INT, c2 INT, c3 INT, c4 INT, c5 INT); If column C1 is unique and queries typically access columns C1, C2 and C3 together, which statement(s) will createindex(es) that will provide optimal query performance?()ACREATE UNIQUE INDEX xtab1 ON tab1 (c1); CREATE INDEX xtab2 ON tab1 (c2) INCLUDE (c3) BCREATE UNIQUE INDEX xtab1 ON tab1 (c1) INCLUDE (c2, c3) CCREATE UNIQUE INDEX xtab1 ON tab1 (c3, c2, c1) DCREATE UNIQUE INDEX xtab1 ON tab1 (c2) INCLUDE (c1, c3)