SQL Index

Advertisements

Prev Tutorial Next Tutorial

SQL Index

Index statement is used create indexes in table. By using index you can retrieve data without reading whole date, it means by using index you can retrieve data fastly.

Note: Updating a table with indexes takes more time than updating a table without index, because the indexes also need an update.

Advantage of Index

  • Find data fast
  • Find data more quickly and efficiently

Syntax

	
CREATE INDEX index_name
ON table_name (column_name)

Note: Index syntax is vary from database to database.

Example

CREATE INDEX PIndex
ON Employee (name)

You can also create index for multiple column at a time

Example

CREATE INDEX PIndex
ON Employee (name, salary)

Prev Tutorial Next Tutorial

Advertisements

Buy This Ad Space @$20 per Month, Ad Size 600X200 Contact on: hitesh.xc@gmail.com or 8076671483

Pure VPN Privide Lowest Price VPN Just @ $1.65. Per Month with Non Detected IP Lowest Price Non Detected IP VPN

Magenet is best Adsense Alternative here we earn $2 for single link, Here we get links ads. Magenet

Download Projects

Google Advertisements


Buy Websites 9999595223

Buy Fresh and Payment Receive Media.net Account with Website. Contact on: hitesh.xc@gmail.com or 9999595223 Try this Keyword C++ Programs

Advertisements