Auto Ads code

Showing posts with label simple. Show all posts
Showing posts with label simple. Show all posts

Wednesday, June 5, 2019

SQL Indexer

Indexer

Indexer is also same as index in  sql server table

Indexers are of two type

  1. Simple
  2. Composite

An indexer created on single column of table is simple indexer where as indexer created on more
than one column is called composite indexer.

Simple Indexer
Syntax:
create index <indexName> on <tableName>(<columnName>);
Example:
create index Emp_Id_idx on Employee_Master(EmpId);

Composite index
Syntax:
create index <indexName> on <tableName> (<columnName1>,<columnName2>);
Example:
create index index11 on Employee_Master(Age,Salary);