国产探花免费观看_亚洲丰满少妇自慰呻吟_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)

(編輯:武林網)

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 普宁市| 吴桥县| 汝南县| 咸阳市| 太谷县| 乌海市| 沂水县| 新化县| 凤山市| 托克逊县| 柯坪县| 峡江县| 江阴市| 宝清县| 惠安县| 塔城市| 海城市| 湘阴县| 太原市| 西安市| 武冈市| 黄骅市| 华容县| 儋州市| 互助| 即墨市| 肃北| 米林县| 中卫市| 兴隆县| 无为县| 南昌市| 贡山| 黄梅县| 太湖县| 扶余县| 武陟县| 昌邑市| 孙吴县| 丹东市| 炎陵县|