zoukankan      html  css  js  c++  java
  • 分区测试 分区本质

    D:wamp64wampinmysqlmysql5.6.17in>mysql
    Welcome to the MySQL monitor.  Commands end with ; or g.
    Your MySQL connection id is 2
    Server version: 5.6.17 MySQL Community Server (GPL)
    
    Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.
    
    Oracle is a registered trademark of Oracle Corporation and/or its
    affiliates. Other names may be trademarks of their respective
    owners.
    
    Type 'help;' or 'h' for help. Type 'c' to clear the current input statement.
    
    mysql> show databases
        -> ;
    +--------------------+
    | Database           |
    +--------------------+
    | information_schema |
    | test               |
    +--------------------+
    2 rows in set (0.01 sec)
    
    mysql> use test
    Database changed
    mysql> show tables;
    +----------------+
    | Tables_in_test |
    +----------------+
    | cadrs          |
    | wadr           |
    +----------------+
    2 rows in set (0.00 sec)
    
    mysql> select version();
    +-----------+
    | version() |
    +-----------+
    | 5.6.17    |
    +-----------+
    1 row in set (0.00 sec)
    
    mysql> CREATE TABLE t3 (   col1 INT NOT NULL,   col2 DATE NOT NULL,   col3 INT NOT NULL,   col4 INT
    NOT NULL,   UNIQUE KEY (col1, col2, col3)  )PARTITION BY RANGE( col3 ) (  PARTITION p1 VALUES LESS T
    HAN (11),  PARTITION p2 VALUES LESS THAN (15));
    Query OK, 0 rows affected (0.05 sec)
    
    mysql> show COLUMNS FROM t3;
    +-------+---------+------+-----+---------+-------+
    | Field | Type    | Null | Key | Default | Extra |
    +-------+---------+------+-----+---------+-------+
    | col1  | int(11) | NO   | PRI | NULL    |       |
    | col2  | date    | NO   | PRI | NULL    |       |
    | col3  | int(11) | NO   | PRI | NULL    |       |
    | col4  | int(11) | NO   |     | NULL    |       |
    +-------+---------+------+-----+---------+-------+
    4 rows in set (0.02 sec)
    
    mysql> select version();
    +-----------+
    | version() |
    +-----------+
    | 5.6.17    |
    +-----------+
    1 row in set (0.00 sec)
    
    mysql>
    

      

  • 相关阅读:
    python中不可变数据类型和可变数据类型
    你分得清Python中:“索引和切片”吗?
    Python Django中一些少用却很实用的orm查询方法
    jQuery on()方法
    jquery.flexslider-min.js实现banner轮播图效果
    jQuery 树型菜单插件(Treeview)
    jQuery Growl 插件(消息提醒)
    jQuery Autocomplete 用户快速找到并从预设值列表中选择
    jQuery Accordion 插件用于创建折叠菜单
    jquery.validate.js 验证框架详解
  • 原文地址:https://www.cnblogs.com/rsapaper/p/9362787.html
Copyright © 2011-2022 走看看