Server IP : 172.67.216.182 / Your IP : 162.158.162.126 Web Server : Apache System : Linux krdc-ubuntu-s-2vcpu-4gb-amd-blr1-01.localdomain 5.15.0-142-generic #152-Ubuntu SMP Mon May 19 10:54:31 UTC 2025 x86_64 User : www ( 1000) PHP Version : 7.4.33 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /www/server/mysql/src/mysql-test/suite/max_parts/r/ |
Upload File : |
create table t2 (a int not null, primary key(a)) engine='MyISAM' partition by key (a) partitions 8192; Warnings: Warning 1287 The partition engine, used by table 'test.t2', is deprecated and will be removed in a future release. Please use native partitioning instead. show create table t2; Table Create Table t2 CREATE TABLE `t2` ( `a` int(11) NOT NULL, PRIMARY KEY (`a`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 /*!50100 PARTITION BY KEY (a) PARTITIONS 8192 */ Warnings: Warning 1287 The partition engine, used by table 'test.t2', is deprecated and will be removed in a future release. Please use native partitioning instead. 65535 inserts; select count(*) from t2; count(*) 65535 select count(*) from t2 partition (p0); count(*) 8 select count(*) from t2 partition (p10); count(*) 0 select count(*) from t2 partition (p100); count(*) 2 select count(*) from t2 partition (p1000); count(*) 22 select count(*) from t2 partition (p4000); count(*) 2 select count(*) from t2 partition (p8000); count(*) 2 select count(*) from t2 partition (p8191); count(*) 7 select * from t2 partition (p0); a 35503 37977 38009 38108 38109 38140 38141 39061 select * from t2 partition (p10); a select * from t2 partition (p100); a 14987 15903 select * from t2 partition (p1000); a 9883 13835 20549 20581 20680 20681 20682 20683 20712 20713 20714 20715 28741 28773 28872 28873 28874 28875 28904 28905 28906 28907 select * from t2 partition (p4000); a 18959 27151 select * from t2 partition (p8000); a 10373 32379 select * from t2 partition (p8191); a 690 1471 1503 4690 4722 7230 14597 delete from t2 partition (p8191); select * from t2 partition (p8191); a insert into t2 partition (p8191) values (690), (1471); select * from t2 partition (p8191); a 690 1471 update t2 partition (p8191) set a=4690 where a= 690; select * from t2 partition (p8191); a 1471 4690 load data infile 'MYSQL_TMP_DIR/data01' into table t2 partition (p8191) fields terminated by ','; select * from t2 partition (p8191); a 1471 4690 7230 14597 drop table t2;