⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 partition_order.result

📁 开启mysql的远程连接的方法 mysql-noinstall-5.1.6-alpha-win32.zip
💻 RESULT
📖 第 1 页 / 共 2 页
字号:
drop table if exists t1;CREATE TABLE t1 (a int not null,b int not null,primary key(a),index (b))partition by range (a)partitions 2(partition x1 values less than (25),partition x2 values less than (100));INSERT into t1 values (1, 1);INSERT into t1 values (2, 5);INSERT into t1 values (30, 4);INSERT into t1 values (35, 2);select * from t1 order by b;a	b1	135	230	42	5select * from t1 force index (b) where b > 0 order by b;a	b1	135	230	42	5drop table t1;CREATE TABLE t1 (a int not null,b int unsigned not null,primary key(a),index (b))partition by range (a)partitions 2(partition x1 values less than (25),partition x2 values less than (100));INSERT into t1 values (1, 1);INSERT into t1 values (2, 5);INSERT into t1 values (30, 4);INSERT into t1 values (35, 2);select * from t1 force index (b) where b > 0 order by b;a	b1	135	230	42	5drop table t1;CREATE TABLE t1 (a int not null,b tinyint not null,primary key(a),index (b))partition by range (a)partitions 2(partition x1 values less than (25),partition x2 values less than (100));INSERT into t1 values (1, 1);INSERT into t1 values (2, 5);INSERT into t1 values (30, 4);INSERT into t1 values (35, 2);select * from t1 force index (b) where b > 0 order by b;a	b1	135	230	42	5drop table t1;CREATE TABLE t1 (a int not null,b tinyint unsigned not null,primary key(a),index (b))partition by range (a)partitions 2(partition x1 values less than (25),partition x2 values less than (100));INSERT into t1 values (1, 1);INSERT into t1 values (2, 5);INSERT into t1 values (30, 4);INSERT into t1 values (35, 2);select * from t1 force index (b) where b > 0 order by b;a	b1	135	230	42	5drop table t1;CREATE TABLE t1 (a int not null,b smallint not null,primary key(a),index (b))partition by range (a)partitions 2(partition x1 values less than (25),partition x2 values less than (100));INSERT into t1 values (1, 1);INSERT into t1 values (2, 5);INSERT into t1 values (30, 4);INSERT into t1 values (35, 2);select * from t1 force index (b) where b > 0 order by b;a	b1	135	230	42	5drop table t1;CREATE TABLE t1 (a int not null,b smallint unsigned not null,primary key(a),index (b))partition by range (a)partitions 2(partition x1 values less than (25),partition x2 values less than (100));INSERT into t1 values (1, 1);INSERT into t1 values (2, 5);INSERT into t1 values (30, 4);INSERT into t1 values (35, 2);select * from t1 force index (b) where b > 0 order by b;a	b1	135	230	42	5drop table t1;CREATE TABLE t1 (a int not null,b mediumint not null,primary key(a),index (b))partition by range (a)partitions 2(partition x1 values less than (25),partition x2 values less than (100));INSERT into t1 values (1, 1);INSERT into t1 values (2, 5);INSERT into t1 values (30, 4);INSERT into t1 values (35, 2);select * from t1 force index (b) where b > 0 order by b;a	b1	135	230	42	5drop table t1;CREATE TABLE t1 (a int not null,b mediumint unsigned not null,primary key(a),index (b))partition by range (a)partitions 2(partition x1 values less than (25),partition x2 values less than (100));INSERT into t1 values (1, 1);INSERT into t1 values (2, 5);INSERT into t1 values (30, 4);INSERT into t1 values (35, 2);select * from t1 force index (b) where b > 0 order by b;a	b1	135	230	42	5drop table t1;CREATE TABLE t1 (a int not null,b bigint unsigned not null,primary key(a),index (b))partition by range (a)partitions 2(partition x1 values less than (25),partition x2 values less than (100));INSERT into t1 values (1, 1);INSERT into t1 values (2, 5);INSERT into t1 values (30, 4);INSERT into t1 values (35, 2);select * from t1 force index (b) where b > 0 order by b;a	b1	135	230	42	5drop table t1;CREATE TABLE t1 (a int not null,b bigint not null,primary key(a),index (b))partition by range (a)partitions 2(partition x1 values less than (25),partition x2 values less than (100));INSERT into t1 values (1, 1);INSERT into t1 values (2, 5);INSERT into t1 values (30, 4);INSERT into t1 values (35, 2);select * from t1 force index (b) where b > 0 order by b;a	b1	135	230	42	5drop table t1;CREATE TABLE t1 (a int not null,b bigint not null,primary key(a),index (b))partition by range (a)partitions 2(partition x1 values less than (25),partition x2 values less than (100));INSERT into t1 values (1, 1);INSERT into t1 values (2, 5);INSERT into t1 values (30, 4);INSERT into t1 values (35, 2);select * from t1 force index (b) where b > 0 order by b;a	b1	135	230	42	5drop table t1;CREATE TABLE t1 (a int not null,b float not null,primary key(a),index (b))partition by range (a)partitions 2(partition x1 values less than (25),partition x2 values less than (100));INSERT into t1 values (1, 1);INSERT into t1 values (2, 5);INSERT into t1 values (30, 4);INSERT into t1 values (35, 2);select * from t1 force index (b) where b > 0 order by b;a	b1	135	230	42	5drop table t1;CREATE TABLE t1 (a int not null,b double not null,primary key(a),index (b))partition by range (a)partitions 2(partition x1 values less than (25),partition x2 values less than (100));INSERT into t1 values (1, 1);INSERT into t1 values (2, 5);INSERT into t1 values (30, 4);INSERT into t1 values (35, 2);select * from t1 force index (b) where b > 0 order by b;a	b1	135	230	42	5drop table t1;CREATE TABLE t1 (a int not null,b double unsigned not null,primary key(a),index (b))partition by range (a)partitions 2(partition x1 values less than (25),partition x2 values less than (100));INSERT into t1 values (1, 1);INSERT into t1 values (2, 5);INSERT into t1 values (30, 4);INSERT into t1 values (35, 2);select * from t1 force index (b) where b > 0 order by b;a	b1	135	230	42	5drop table t1;CREATE TABLE t1 (a int not null,b float unsigned not null,primary key(a),index (b))partition by range (a)partitions 2(partition x1 values less than (25),partition x2 values less than (100));INSERT into t1 values (1, 1);INSERT into t1 values (2, 5);INSERT into t1 values (30, 4);INSERT into t1 values (35, 2);select * from t1 force index (b) where b > 0 order by b;a	b1	135	230	42	5drop table t1;CREATE TABLE t1 (a int not null,b double precision not null,primary key(a),index (b))partition by range (a)partitions 2(partition x1 values less than (25),partition x2 values less than (100));INSERT into t1 values (1, 1);INSERT into t1 values (2, 5);INSERT into t1 values (30, 4);INSERT into t1 values (35, 2);select * from t1 force index (b) where b > 0 order by b;a	b1	135	230	42	5drop table t1;CREATE TABLE t1 (a int not null,b double precision unsigned not null,primary key(a),index (b))partition by range (a)partitions 2(partition x1 values less than (25),partition x2 values less than (100));INSERT into t1 values (1, 1);INSERT into t1 values (2, 5);INSERT into t1 values (30, 4);INSERT into t1 values (35, 2);select * from t1 force index (b) where b > 0 order by b;a	b1	135	230	42	5drop table t1;CREATE TABLE t1 (a int not null,b decimal not null,primary key(a),index (b))partition by range (a)partitions 2(partition x1 values less than (25),partition x2 values less than (100));INSERT into t1 values (1, 1);INSERT into t1 values (2, 5);INSERT into t1 values (30, 4);INSERT into t1 values (35, 2);select * from t1 force index (b) where b > 0 order by b;a	b1	135	230	42	5drop table t1;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -