SQL Server Indexes
Apa itu Indexing ?
Contoh coding
USE [syncdb]
GO
SET ANSI_PADDING ON
GO
/****** Object: Index [train_map] Script Date: 08-Dec-20 16:26:35 ******/
CREATE NONCLUSTERED INDEX [train_map] ON [dbo].[displayfallbackdata]
(
[DisplayId] ASC,
[ExpectedDeparture] DESC,
[State] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
Ulasan