涓撴敞浜嶹EB鎶€">

Home >php教程 >PHP开发 >mysql鐨勫父瑙勭储寮昳ndex

mysql鐨勫父瑙勭储寮昳ndex

WBOY
WBOYOriginal
2016-06-07 17:23:381451browse

   甯歌绱㈠紩鎶€鏈槸鍏崇郴鏁版嵁鏌ヨ涓渶閲嶈鐨勬妧鏈紝濡傛灉瑕佹彁鍗囨暟鎹簱鐨勬€ц兘锛岀储寮曚紭鍖栨槸棣栧厛搴旇鑰冭檻鐨勶紝鍥犱负瀹冭兘浣跨敤鎴戜滑鐨勬暟鎹簱寰楀埌鏈€澶ф€ц兘鏂归潰鐨勬彁鍗囥€傚鏋滄病鏈夌储寮曠殑鏁版嵁琛紝灏辨病鏈夋帓搴忕殑鏁版嵁闆嗗悎锛岃鏌ヨ鏁版嵁灏遍渶瑕佽繘琛屽叏琛ㄦ壂鎻忋€傛湁绱㈠紩鐨勮〃鏄竴涓湪绱㈠紩鍒椾笂鎺掑簭浜嗙殑鏁版嵁琛紝鍙€氳繃绱㈠紩蹇€熷畾浣嶈褰曘€?/p>


   MyISAM鏁版嵁琛ㄤ腑鏁版嵁淇濆瓨鍦ㄦ暟鎹枃浠朵腑锛岀储寮曚繚瀛樺湪绱㈠紩鏂囦欢(.MYI)涓€傝€孖nnoDB鏁版嵁琛ㄦ妸鏁版嵁涓庣储寮曟斁鍦ㄥ悓涓€涓枃浠朵腑銆?/p>


   甯歌绱㈠紩鐨勭己鐐癸細
   1)鍑忔參鍦ㄧ储寮曟暟鎹垪涓婄殑鎻掑叆銆佸垹闄ゅ拰淇敼鎿嶄綔銆傚姞浜嗙储寮曚箣鍚庯紝insert銆乨elete鍜寀pdate鎿嶄綔閮借鏇存柊绱㈠紩锛屼細閫犳垚涓€浜涢檮鍔犳搷浣?/p>

   2)澶氬崰纾佺洏绌洪棿銆傜储寮曟槸淇濆瓨鍦ㄧ墿鐞嗘枃浠?.MYI)閲岀殑锛屾墍浠ュ鏋滃湪涓€寮犲ぇ琛ㄤ笂鍒涘缓绱㈠紩锛屼細閫犳垚绱㈠紩鏂囦欢涔熸瘮杈冨ぇ

   
  mysql璇彞涓€傜敤甯歌绱㈠紩鐨勫湴鏂?/strong>

   
   鍦╓HEERE(=,>,between,in,like)鍜宩oin(on)瀛愬彞锛屽叧鑱旀绱腑鐨凢ROM瀛愬彞锛孫RDER BY鎴朑ROUP BY瀛愬彞涓嚭鐜拌繃鐨勬暟鎹垪銆?/p>

   

   浣跨敤绱㈠紩瑕佹敞鎰忎粈涔堬紵    

绱㈠紩鏄細娑堣€楃郴缁熻祫婧愮殑锛岃閫傚彲鑰屾銆?/p>


   

   鍒涘缓甯歌绱㈠紩鐨勬柟娉?br/>    

   鍘熻〃锛?/p>

CREATE TABLE `wb
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn