MySQL + SQL · Lesson 89

Primary Index और Secondary Index

दो तरह के Index

Typeमतलब
Primary (clustered)Primary key पर बना; physical row order तय करता है। Table में एक।
Secondary (non-clustered)दूसरे columns पर extra index; row location की ओर इशारा। कई हो सकते हैं।

मुख्य बात

InnoDB में primary key ही clustered index है — data physically primary-key order में store होता है। Secondary indexes पूरी row ढूंढने के लिए primary key रखते हैं।

सारांश

  • Primary/clustered index = table में एक, row order तय करता है (primary key)।
  • Secondary index = additional, दूसरे searched columns पर।
🔗

Share this topic with a friend

यह topic किसी दोस्त को भेजें

Found it useful? Send it to a classmate learning the same thing.

अच्छा लगा? जो दोस्त यही सीख रहा है, उसे भेज दीजिए।