কোনও এসকিউএল সার্ভার তৈরি করুন টেবিল স্টেটমেন্টের মধ্যে একটি প্রাথমিক কী বা অনন্য সূচক তৈরি করা সম্ভব। একটি তৈরি টেবিল বিবৃতি মধ্যে একটি অ-অনন্য সূচক তৈরি করা সম্ভব ?
CREATE TABLE MyTable(
a int NOT NULL
,b smallint NOT NULL
,c smallint NOT NULL
,d smallint NOT NULL
,e smallint NOT NULL
-- This creates a primary key
,CONSTRAINT PK_MyTable PRIMARY KEY CLUSTERED (a)
-- This creates a unique nonclustered index on columns b and c
,CONSTRAINT IX_MyTable1 UNIQUE (b, c)
-- Is it possible to create a non-unique index on columns d and e here?
-- Note: these variations would not work if attempted:
-- ,CONSTRAINT IX_MyTable2 INDEX (d, e)
-- ,CONSTRAINT IX_MyTable3 NONCLUSTERED INDEX (d, e)
);
GO
-- The proposed non-unique index should behave identically to
-- an index created after the CREATE TABLE statement. Example:
CREATE NONCLUSTERED INDEX IX_MyTable4 ON MY_TABLE (d, e);
GO
আবার, লক্ষ্যটি হ'ল তৈরি টেবিল বিবৃতিতে অনন্য-অনন্য সূচক তৈরি করা, তার পরে নয়।
এটির মূল্যের জন্য, আমি [সারণী সারণীর জন্য এসকিউএল সার্ভার বই অনলাইন এন্ট্রি] সহায়ক হতে পারি নি।
এছাড়াও, [এই প্রশ্ন] প্রায় অভিন্ন, তবে গৃহীত উত্তর প্রযোজ্য নয়।