Search
 
SCRIPT & CODE EXAMPLE
 

SQL

clustered-nonclustered indexes(constraints)

/* Clustered index */
ALTER TABLE MyTable
    ADD CONSTRAINT PK_MyTable
        PRIMARY KEY(WidgetId);
 
/* Clustered index */  
ALTER TABLE MyTable
    ADD CONSTRAINT PK_MyTable
        PRIMARY KEY CLUSTERED(WidgetId);
 
/* Non-clustered index */  
ALTER TABLE MyTable
    ADD CONSTRAINT PK_MyTable
        PRIMARY KEY NONCLUSTERED(WidgetId);
 
 
/* Non-clustered index */  
ALTER TABLE MyTable
    ADD CONSTRAINT UC_MyTable_WidgetNumber
        UNIQUE(WidgetNumber);
 
/* Non-clustered index */  
ALTER TABLE MyTable
    ADD CONSTRAINT UC_MyTable_WidgetNumber
        UNIQUE NONCLUSTERED(WidgetNumber);
 
/* Clustered index */  
ALTER TABLE MyTable
    ADD CONSTRAINT UC_MyTable_WidgetNumber
        UNIQUE CLUSTERED(WidgetNumber);
Comment

PREVIOUS NEXT
Code Example
::  
::  
Sql ::  
::  
::  
::  
::  
::  
::  
::  
Javascript ::  
::  
::  
::  
Javascript ::  
Javascript ::  
::  
::  
Javascript :: remove commas from string javascript 
::  
::  
Javascript ::  
::  
::  
::  
:: discord.js v13 send embed 
::  
::  
::  
:: javascript hex to rgb 
ADD CONTENT
Topic
Content
Source link
Name
1+2 =