国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 數據庫 > MySQL > 正文

MySQL索引性能測驗

2024-07-24 12:32:43
字體:
來源:轉載
供稿:網友
         很長一段時間沒學習MySQL了,一直致力于oracle的研究,最近得空了就再拾起MySQL看看吧,記得去年發布過的2篇MySQL文章:
  
       今天我們就來看看mysql中索引的性能測試:
      1  準備環境
     1.1  在數據庫中創建測試表test1
[root@rhel6_lhr ~]# mysql -p
 
Enter password:
 
Welcome to the MySQL monitor.  Commands end with ; or /g.
 
Your MySQL connection id is 14
 
Server version: 5.6.21-enterprise-commercial-advanced MySQL Enterprise Server - Advanced Edition (Commercial)
 
mysql> show databases;
 
+--------------------+
 
| Database           |
 
+--------------------+
 
| information_schema |
 
| db1                |
 
| db4                |
 
| lhr_test           |
 
| mysql              |
 
| opensource         |
 
| opesource          |
 
| performance_schema |
 
| test               |
 
| wyzc               |
 
+--------------------+
 
10 rows in set (0.00 sec)
  
mysql> use lhr_test;
 
Reading table information for completion of table and column names
 
You can turn off this feature to get a quicker startup with -A
 
mysql> desc test1;
 
+-------+-------------+------+-----+---------+-------+
 
| Field | Type        | Null | Key | Default | Extra |
 
+-------+-------------+------+-----+---------+-------+
 
| id    | int(11)     | YES  |     | NULL    |       |
 
| num   | int(11)     | YES  |     | NULL    |       |
 
| pass  | varchar(50) | YES  |     | NULL    |       |
 
+-------+-------------+------+-----+---------+-------+
 
3 rows in set (0.00 sec)
 
mysql> create table test3(
 
    ->  id int,
 
    ->  num int,
 
    ->  pass varchar(50)
 
    ->  );
 
reset query cache;Query OK, 0 rows affected (0.09 sec)

(編輯:武林網)

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 胶南市| 保山市| 长乐市| 祁门县| 贡嘎县| 巴里| 五原县| 武平县| 曲周县| 莱西市| 通江县| 武山县| 隆昌县| 梧州市| 怀远县| 澳门| 贵溪市| 周至县| 梁河县| 汶川县| 昔阳县| 英吉沙县| 巫溪县| 黑龙江省| 梁平县| 碌曲县| 洛浦县| 内丘县| 佛山市| 武功县| 施甸县| 寿阳县| 穆棱市| 乡宁县| 武功县| 郑州市| 宁乡县| 台州市| 武定县| 云安县| 阿克苏市|